summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-02-26 13:51:35 -0500
committerScott Moser <smoser@ubuntu.com>2015-02-26 13:51:35 -0500
commitd136a3cf9aa409a0275cc884227971c1cd21720d (patch)
treee866f8a564374792bc6636fd1f9484c10af119e1 /cloudinit
parentfa5a94ea415fc04c0fc50e9d3c08399f43aabcef (diff)
downloadvyos-cloud-init-d136a3cf9aa409a0275cc884227971c1cd21720d.tar.gz
vyos-cloud-init-d136a3cf9aa409a0275cc884227971c1cd21720d.zip
avoid conversion to string in #include
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/user_data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/user_data.py b/cloudinit/user_data.py
index 77f95abb..663a9048 100644
--- a/cloudinit/user_data.py
+++ b/cloudinit/user_data.py
@@ -237,9 +237,9 @@ class UserDataProcessor(object):
resp = util.read_file_or_url(include_url,
ssl_details=self.ssl_details)
if include_once_on and resp.ok():
- util.write_file(include_once_fn, resp, mode=0o600)
+ util.write_file(include_once_fn, resp.contents, mode=0o600)
if resp.ok():
- content = resp
+ content = resp.contents
else:
LOG.warn(("Fetching from %s resulted in"
" a invalid http code of %s"),