diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-02-24 12:00:13 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-02-24 12:00:13 -0500 |
commit | 9170dbcd6432ec7aa5d27882f0bb1d29957fc409 (patch) | |
tree | d2f5c0d996fb9eb24629172d2a54f70116b860d3 /cloudinit | |
parent | d12d8cf6c29395ba6cd51dfcc1387d26b5c00f61 (diff) | |
parent | f1ee9275a504c20153b795923b1f51d3005d745c (diff) | |
download | vyos-cloud-init-9170dbcd6432ec7aa5d27882f0bb1d29957fc409.tar.gz vyos-cloud-init-9170dbcd6432ec7aa5d27882f0bb1d29957fc409.zip |
Azure: Fix consumption of user-data
This was previously broken in python3 as the userdata would be bytes
rather than a string.
LP: #1423972
Diffstat (limited to 'cloudinit')
-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 fe343d0c..b11894ce 100644 --- a/cloudinit/user_data.py +++ b/cloudinit/user_data.py @@ -336,7 +336,7 @@ def convert_string(raw_data, headers=None): raw_data = '' if not headers: headers = {} - data = util.decomp_gzip(raw_data) + data = util.decode_binary(util.decomp_gzip(raw_data)) if "mime-version:" in data[0:4096].lower(): msg = email.message_from_string(data) for (key, val) in headers.items(): |