summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
authorroot <root@instance-321034.integration.bigstep.io>2017-03-21 15:34:59 +0000
committerScott Moser <smoser@brickies.net>2017-03-21 16:13:11 -0400
commite1a1854e3f30bed18467e6c0feb896338ad4419a (patch)
treeb9b27d3b3e9abaaaa2a6720f73c0f62e75b40089 /cloudinit/sources
parent192dbda37b50aa97f87976879dd177834a986123 (diff)
downloadvyos-cloud-init-e1a1854e3f30bed18467e6c0feb896338ad4419a.tar.gz
vyos-cloud-init-e1a1854e3f30bed18467e6c0feb896338ad4419a.zip
Bigstep: fix bug when executing in python3.
Python 2's json.loads would accept bytes, so this bug was only exposed in python3.
Diffstat (limited to 'cloudinit/sources')
-rw-r--r--cloudinit/sources/DataSourceBigstep.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceBigstep.py b/cloudinit/sources/DataSourceBigstep.py
index 5ffdcb25..d7fcd45a 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"]