diff options
-rw-r--r-- | cloudinit/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py index d63b4bf2..eba93d1c 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -405,7 +405,7 @@ def multi_log(text, console=True, stderr=True, conpath = "/dev/console" if os.path.exists(conpath): with open(conpath, 'wb') as wfh: - wfh.write(text) + wfh.write(text.encode('utf-8')) wfh.flush() else: # A container may lack /dev/console (arguably a container bug). If |