summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-03-26 22:10:01 -0400
committerScott Moser <smoser@ubuntu.com>2015-03-26 22:10:01 -0400
commit4c341a87d4b0804565e74e6335a0293dab6c0c7b (patch)
tree773e64b30611bf58b56403dede2f9cd2c37930f6 /cloudinit
parent973c8b05358fe6ad1ce7adb25cb743ef4d38d792 (diff)
downloadvyos-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.py2
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)