diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-02-10 21:21:03 +0000 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-02-10 21:21:03 +0000 |
commit | 5c536ac1e89acfd71bf45e39e2bcbb1f5498c798 (patch) | |
tree | eff6681b11c9643b62230e4725d0add6d47efbb6 /bin | |
parent | 4b578b2d1fbc6af141081c457ffc74c811e788f3 (diff) | |
download | vyos-cloud-init-5c536ac1e89acfd71bf45e39e2bcbb1f5498c798.tar.gz vyos-cloud-init-5c536ac1e89acfd71bf45e39e2bcbb1f5498c798.zip |
fix for cloud-init bin use encode
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cloud-init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cloud-init b/bin/cloud-init index 866f8ca4..d67b2b6d 100755 --- a/bin/cloud-init +++ b/bin/cloud-init @@ -428,7 +428,7 @@ def atomic_write_json(path, data): try: tf = tempfile.NamedTemporaryFile(dir=os.path.dirname(path), delete=False) - tf.write(json.dumps(data, indent=1) + "\n") + tf.write((json.dumps(data, indent=1) + "\n").encode()) tf.close() os.rename(tf.name, path) except Exception as e: |