diff options
author | Joshua Harlow <harlowja@gmail.com> | 2014-10-18 09:27:47 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@gmail.com> | 2014-10-18 09:27:47 -0700 |
commit | 2d9d3811b4b1d4ea078a0bba6cf5e067339c14f3 (patch) | |
tree | 1ce9fa86047650a8fecbacb4aae18272e22b1ab5 /packages | |
parent | 797de394e5395f39b7f17403999e25cbe7f7a126 (diff) | |
download | vyos-cloud-init-2d9d3811b4b1d4ea078a0bba6cf5e067339c14f3.tar.gz vyos-cloud-init-2d9d3811b4b1d4ea078a0bba6cf5e067339c14f3.zip |
Pretty up the debug module
Previously the usage of the yaml_dumps module was causing
any python unicode key and value to show up as:
'item': !!python/unicode "some string"
This was not very pretty...
Fix this by using safe_dumps (which is also a good thing to
use and allow_unicode=True). Also create a tiny helper function
in the cc_debug module that does not include the yaml start and
end footers (since this module has its own footers and headers).
Also includes a basic sanity test for this module.
Diffstat (limited to 'packages')
0 files changed, 0 insertions, 0 deletions