summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-02-11 12:35:15 -0500
committerScott Moser <smoser@ubuntu.com>2015-02-11 12:35:15 -0500
commit33c938c2e2d196aa9b202087cef8703abc13bc52 (patch)
tree62e13a614ccf0c7a301ff9534bf9c88e900c0726
parentd5c93d393ed41b33522c2d6f12465b1f12d28e95 (diff)
parent85953f737b77b55a0fbe160b158f2ce77730e523 (diff)
downloadvyos-cloud-init-33c938c2e2d196aa9b202087cef8703abc13bc52.tar.gz
vyos-cloud-init-33c938c2e2d196aa9b202087cef8703abc13bc52.zip
open console as text mode
-rw-r--r--cloudinit/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py
index eba93d1c..fe606f23 100644
--- a/cloudinit/util.py
+++ b/cloudinit/util.py
@@ -404,8 +404,8 @@ def multi_log(text, console=True, stderr=True,
if console:
conpath = "/dev/console"
if os.path.exists(conpath):
- with open(conpath, 'wb') as wfh:
- wfh.write(text.encode('utf-8'))
+ with open(conpath, 'w') as wfh:
+ wfh.write(text)
wfh.flush()
else:
# A container may lack /dev/console (arguably a container bug). If