diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-03-26 22:10:01 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-03-26 22:10:01 -0400 |
commit | 4c341a87d4b0804565e74e6335a0293dab6c0c7b (patch) | |
tree | 773e64b30611bf58b56403dede2f9cd2c37930f6 /cloudinit | |
parent | 973c8b05358fe6ad1ce7adb25cb743ef4d38d792 (diff) | |
download | vyos-cloud-init-4c341a87d4b0804565e74e6335a0293dab6c0c7b.tar.gz vyos-cloud-init-4c341a87d4b0804565e74e6335a0293dab6c0c7b.zip |
add tests for data types
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/config/cc_snappy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_snappy.py b/cloudinit/config/cc_snappy.py index d1447fe5..bd928e54 100644 --- a/cloudinit/config/cc_snappy.py +++ b/cloudinit/config/cc_snappy.py @@ -101,7 +101,7 @@ def render_snap_op(op, name, path=None, cfgfile=None, config=None): elif isinstance(config, six.text_type): cfg_bytes = config.encode() else: - cfg_bytes = yaml.safe_dump(config).encode() + cfg_bytes = util.yaml_dumps(config) (fd, cfg_tmpf) = tempfile.mkstemp() os.write(fd, cfg_bytes) |