summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2010-02-19 02:21:58 -0500
committerScott Moser <smoser@ubuntu.com>2010-02-19 02:21:58 -0500
commit7ddf958c9317ef06f133050f51f8f08b1270674c (patch)
tree34653035b318b7e3d023851d24d7c1eb2975031a /cloudinit
parente771ad9094f117dfa2c0dee41d553bd552a54e08 (diff)
downloadvyos-cloud-init-7ddf958c9317ef06f133050f51f8f08b1270674c.tar.gz
vyos-cloud-init-7ddf958c9317ef06f133050f51f8f08b1270674c.zip
make sure items are strings (not ints)
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/CloudConfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/CloudConfig.py b/cloudinit/CloudConfig.py
index 532abede..6c54ae8e 100644
--- a/cloudinit/CloudConfig.py
+++ b/cloudinit/CloudConfig.py
@@ -509,10 +509,10 @@ def handle_runcmd(cfg):
if isinstance(args,list):
fixed = [ ]
for f in args:
- fixed.append("'%s'" % f.replace("'",escaped))
+ fixed.append("'%s'" % str(f).replace("'",escaped))
content="%s%s\n" % ( content, ' '.join(fixed) )
else:
- content="%s%s\n" % ( content, args )
+ content="%s%s\n" % ( content, str(args) )
util.write_file(outfile,content,0700)
except: