summaryrefslogtreecommitdiff
path: root/bin/cloud-init
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-02-10 21:21:03 +0000
committerScott Moser <smoser@ubuntu.com>2015-02-10 21:21:03 +0000
commit5c536ac1e89acfd71bf45e39e2bcbb1f5498c798 (patch)
treeeff6681b11c9643b62230e4725d0add6d47efbb6 /bin/cloud-init
parent4b578b2d1fbc6af141081c457ffc74c811e788f3 (diff)
downloadvyos-cloud-init-5c536ac1e89acfd71bf45e39e2bcbb1f5498c798.tar.gz
vyos-cloud-init-5c536ac1e89acfd71bf45e39e2bcbb1f5498c798.zip
fix for cloud-init bin use encode
Diffstat (limited to 'bin/cloud-init')
-rwxr-xr-xbin/cloud-init2
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: