diff options
-rw-r--r-- | cloudinit/CloudConfig.py | 4 |
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: |