summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wing <wingc@umich.edu>2013-05-20 21:18:13 +0000
committerChris Wing <wingc@umich.edu>2013-05-20 21:18:13 +0000
commit9a72f2e9d7f4e5fcfbd40fc7f0ecc86680f995df (patch)
tree688be7c4d7663054163e07a0854857c6ce0998cd
parent812b11146e35851aca8bb76482658bd85853ee0e (diff)
downloadvyos-cloud-init-9a72f2e9d7f4e5fcfbd40fc7f0ecc86680f995df.tar.gz
vyos-cloud-init-9a72f2e9d7f4e5fcfbd40fc7f0ecc86680f995df.zip
Fix Chef client 'omnibus' install; util.write_file() expects a string not UrlResponse
-rw-r--r--cloudinit/config/cc_chef.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_chef.py b/cloudinit/config/cc_chef.py
index 607f789e..727769cd 100644
--- a/cloudinit/config/cc_chef.py
+++ b/cloudinit/config/cc_chef.py
@@ -110,7 +110,7 @@ def handle(name, cfg, cloud, log, _args):
with util.tempdir() as tmpd:
# use tmpd over tmpfile to avoid 'Text file busy' on execute
tmpf = "%s/chef-omnibus-install" % tmpd
- util.write_file(tmpf, content, mode=0700)
+ util.write_file(tmpf, str(content), mode=0700)
util.subp([tmpf], capture=False)
else:
log.warn("Unknown chef install type %s", install_type)