cloud-init-dev team mailing list archive
-
cloud-init-dev team
-
Mailing list archive
-
Message #01776
[Merge] ~alexandru-sirbu/cloud-init:bigstep-quickfix into cloud-init:master
Alex Sirbu has proposed merging ~alexandru-sirbu/cloud-init:bigstep-quickfix into cloud-init:master.
Requested reviews:
cloud init development team (cloud-init-dev)
For more details, see:
https://code.launchpad.net/~alexandru-sirbu/cloud-init/+git/cloud-init/+merge/320513
Fix to Bigstep Datasource, in order to fix error when running on Python 3
--
Your team cloud init development team is requested to review the proposed merge of ~alexandru-sirbu/cloud-init:bigstep-quickfix into cloud-init:master.
diff --git a/cloudinit/sources/DataSourceBigstep.py b/cloudinit/sources/DataSourceBigstep.py
index 5ffdcb2..d7fcd45 100644
--- a/cloudinit/sources/DataSourceBigstep.py
+++ b/cloudinit/sources/DataSourceBigstep.py
@@ -27,7 +27,7 @@ class DataSourceBigstep(sources.DataSource):
if url is None:
return False
response = url_helper.readurl(url)
- decoded = json.loads(response.contents)
+ decoded = json.loads(response.contents.decode())
self.metadata = decoded["metadata"]
self.vendordata_raw = decoded["vendordata_raw"]
self.userdata_raw = decoded["userdata_raw"]
Follow ups