diff options
author | Daniel Watkins <daniel.watkins@canonical.com> | 2015-02-11 17:24:08 +0000 |
---|---|---|
committer | Daniel Watkins <daniel.watkins@canonical.com> | 2015-02-11 17:24:08 +0000 |
commit | 85953f737b77b55a0fbe160b158f2ce77730e523 (patch) | |
tree | 08afc8506b8c48048287997ff5d8ddf90ea92a6f /cloudinit/util.py | |
parent | 62f5f10c2572585b89f5c837b84015a86e6af357 (diff) | |
download | vyos-cloud-init-85953f737b77b55a0fbe160b158f2ce77730e523.tar.gz vyos-cloud-init-85953f737b77b55a0fbe160b158f2ce77730e523.zip |
Open /dev/console in text mode (so we don't have to encode strings to write them).
Diffstat (limited to 'cloudinit/util.py')
-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..fe606f23 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -404,7 +404,7 @@ def multi_log(text, console=True, stderr=True, if console: conpath = "/dev/console" if os.path.exists(conpath): - with open(conpath, 'wb') as wfh: + with open(conpath, 'w') as wfh: wfh.write(text) wfh.flush() else: |