summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_bootcmd.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-02-10 21:33:11 +0000
committerScott Moser <smoser@ubuntu.com>2015-02-10 21:33:11 +0000
commitb8eb55f9acdf92a58d3c72b0c5e5437c4f0272c1 (patch)
tree53cfd95f69aafca83ea8bdff0b6ab0d494ae530c /cloudinit/config/cc_bootcmd.py
parent5c536ac1e89acfd71bf45e39e2bcbb1f5498c798 (diff)
downloadvyos-cloud-init-b8eb55f9acdf92a58d3c72b0c5e5437c4f0272c1.tar.gz
vyos-cloud-init-b8eb55f9acdf92a58d3c72b0c5e5437c4f0272c1.zip
use encode_text
Diffstat (limited to 'cloudinit/config/cc_bootcmd.py')
-rw-r--r--cloudinit/config/cc_bootcmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_bootcmd.py b/cloudinit/config/cc_bootcmd.py
index 3ac22967..a295cc4e 100644
--- a/cloudinit/config/cc_bootcmd.py
+++ b/cloudinit/config/cc_bootcmd.py
@@ -36,7 +36,7 @@ def handle(name, cfg, cloud, log, _args):
with util.ExtendedTemporaryFile(suffix=".sh") as tmpf:
try:
content = util.shellify(cfg["bootcmd"])
- tmpf.write(content)
+ tmpf.write(util.encode_text(content))
tmpf.flush()
except:
util.logexc(log, "Failed to shellify bootcmd")