summaryrefslogtreecommitdiff
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
parente771ad9094f117dfa2c0dee41d553bd552a54e08 (diff)
downloadcloud-init-git-0.5.6.tar.gz
make sure items are strings (not ints)0.5.6
-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: