From 7ddf958c9317ef06f133050f51f8f08b1270674c Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Fri, 19 Feb 2010 02:21:58 -0500 Subject: make sure items are strings (not ints) --- cloudinit/CloudConfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cloudinit/CloudConfig.py') 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: -- cgit v1.2.3