summaryrefslogtreecommitdiff
path: root/cloudinit/user_data.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-07-10 17:06:45 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-07-10 17:06:45 -0700
commit7b24230437a27779bafa0828e73ab595c5aeb202 (patch)
tree1e0da0898e4361aefec5ba72dd6e346f008e095e /cloudinit/user_data.py
parent86f0d708564ab210f2f58f3e76f94a4af56e360b (diff)
downloadvyos-cloud-init-7b24230437a27779bafa0828e73ab595c5aeb202.tar.gz
vyos-cloud-init-7b24230437a27779bafa0828e73ab595c5aeb202.zip
Fixes 1012854 by implementing file writing, adjusts
other code to have user/group parsing in util instead of in stages.py, renames decomp_str to decomp_gzip since it is more meaningful when named that (as thats all it can decompress).
Diffstat (limited to 'cloudinit/user_data.py')
-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 0842594d..f5d01818 100644
--- a/cloudinit/user_data.py
+++ b/cloudinit/user_data.py
@@ -227,7 +227,7 @@ def convert_string(raw_data, headers=None):
raw_data = ''
if not headers:
headers = {}
- data = util.decomp_str(raw_data)
+ data = util.decomp_gzip(raw_data)
if "mime-version:" in data[0:4096].lower():
msg = email.message_from_string(data)
for (key, val) in headers.iteritems():