Merge ~alexandru-sirbu/cloud-init:bigstep-quickfix into cloud-init:master

Proposed by Alex Sirbu
Status: Merged
Merged at revision: e1a1854e3f30bed18467e6c0feb896338ad4419a
Proposed branch: ~alexandru-sirbu/cloud-init:bigstep-quickfix
Merge into: cloud-init:master
Diff against target: 13 lines (+1/-1)
1 file modified
cloudinit/sources/DataSourceBigstep.py (+1/-1)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve
cloud-init Commiters Pending
Review via email: mp+320513@code.launchpad.net

Description of the change

Fix to Bigstep Datasource, in order to fix error when running on Python 3

To post a comment you must log in.
Revision history for this message
Alex Sirbu (alexandru-sirbu) wrote :

Fixed issue in Bigstep Datasource, to make it work with Python 3

Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/cloudinit/sources/DataSourceBigstep.py b/cloudinit/sources/DataSourceBigstep.py
2index 5ffdcb2..d7fcd45 100644
3--- a/cloudinit/sources/DataSourceBigstep.py
4+++ b/cloudinit/sources/DataSourceBigstep.py
5@@ -27,7 +27,7 @@ class DataSourceBigstep(sources.DataSource):
6 if url is None:
7 return False
8 response = url_helper.readurl(url)
9- decoded = json.loads(response.contents)
10+ decoded = json.loads(response.contents.decode())
11 self.metadata = decoded["metadata"]
12 self.vendordata_raw = decoded["vendordata_raw"]
13 self.userdata_raw = decoded["userdata_raw"]

Subscribers

People subscribed via source and target branches