summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_snappy.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-03-26 22:18:16 -0400
committerScott Moser <smoser@ubuntu.com>2015-03-26 22:18:16 -0400
commitd0eacf97c72b2613a3f1ce179e284d5aa98744dc (patch)
tree18239a21626bb047783a83a80ad8f8390f4cda5a /cloudinit/config/cc_snappy.py
parent5e012b1e5f51f82e503a760c8c9c0e2c66aedfee (diff)
downloadvyos-cloud-init-d0eacf97c72b2613a3f1ce179e284d5aa98744dc.tar.gz
vyos-cloud-init-d0eacf97c72b2613a3f1ce179e284d5aa98744dc.zip
encode needed for yaml_dumps
Diffstat (limited to 'cloudinit/config/cc_snappy.py')
-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 dbdc402c..adb25bc2 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 = util.yaml_dumps(config)
+ cfg_bytes = util.yaml_dumps(config).encode()
(fd, cfg_tmpf) = tempfile.mkstemp()
os.write(fd, cfg_bytes)