summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-02-25 19:47:07 -0500
committerScott Moser <smoser@ubuntu.com>2015-02-25 19:47:07 -0500
commitfa5a94ea415fc04c0fc50e9d3c08399f43aabcef (patch)
tree58f8a1f6f5fc5e7563b7da37ffa075d9d17a5e59
parent8cd5d7b143f882d80d45b1c04bdde1949846d4f1 (diff)
downloadvyos-cloud-init-fa5a94ea415fc04c0fc50e9d3c08399f43aabcef.tar.gz
vyos-cloud-init-fa5a94ea415fc04c0fc50e9d3c08399f43aabcef.zip
UserDataProcessor: during include, do not convert to string
an include can include a gzip type also or binary data so avoid conversion here.
-rw-r--r--cloudinit/user_data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/user_data.py b/cloudinit/user_data.py
index b11894ce..77f95abb 100644
--- a/cloudinit/user_data.py
+++ b/cloudinit/user_data.py
@@ -239,7 +239,7 @@ class UserDataProcessor(object):
if include_once_on and resp.ok():
util.write_file(include_once_fn, resp, mode=0o600)
if resp.ok():
- content = str(resp)
+ content = resp
else:
LOG.warn(("Fetching from %s resulted in"
" a invalid http code of %s"),