diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-07-11 17:00:21 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-07-11 17:00:21 -0400 |
commit | e90670e879cdd102e91f6b4c1909992ceb89fc7e (patch) | |
tree | 7feecaaff16fa3c33a632392d8832636fa17f0f6 /cloudinit/user_data.py | |
parent | 3ad885991d355d1a97c7b197e471369d676715fa (diff) | |
parent | 50a5728db977ec11f3448c473a396995ea29319e (diff) | |
download | vyos-cloud-init-e90670e879cdd102e91f6b4c1909992ceb89fc7e.tar.gz vyos-cloud-init-e90670e879cdd102e91f6b4c1909992ceb89fc7e.zip |
add write-files module for "injecting" files (LP: #1012854)
This implements file writing via cloud-config. It also
* 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).
LP: #1012854
Diffstat (limited to 'cloudinit/user_data.py')
-rw-r--r-- | cloudinit/user_data.py | 2 |
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(): |