summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit')
-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 fe343d0c..8fd7fba5 100644
--- a/cloudinit/user_data.py
+++ b/cloudinit/user_data.py
@@ -337,7 +337,7 @@ def convert_string(raw_data, headers=None):
if not headers:
headers = {}
data = util.decomp_gzip(raw_data)
- if "mime-version:" in data[0:4096].lower():
+ if "mime-version:" in str(data[0:4096]).lower():
msg = email.message_from_string(data)
for (key, val) in headers.items():
_replace_header(msg, key, val)