diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-03-26 22:18:16 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-03-26 22:18:16 -0400 |
commit | d0eacf97c72b2613a3f1ce179e284d5aa98744dc (patch) | |
tree | 18239a21626bb047783a83a80ad8f8390f4cda5a /cloudinit/config | |
parent | 5e012b1e5f51f82e503a760c8c9c0e2c66aedfee (diff) | |
download | vyos-cloud-init-d0eacf97c72b2613a3f1ce179e284d5aa98744dc.tar.gz vyos-cloud-init-d0eacf97c72b2613a3f1ce179e284d5aa98744dc.zip |
encode needed for yaml_dumps
Diffstat (limited to 'cloudinit/config')
-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 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) |