diff options
author | root <root@instance-321034.integration.bigstep.io> | 2017-03-21 15:34:59 +0000 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-03-21 16:13:11 -0400 |
commit | e1a1854e3f30bed18467e6c0feb896338ad4419a (patch) | |
tree | b9b27d3b3e9abaaaa2a6720f73c0f62e75b40089 | |
parent | 192dbda37b50aa97f87976879dd177834a986123 (diff) | |
download | vyos-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.
-rw-r--r-- | cloudinit/sources/DataSourceBigstep.py | 2 |
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"] |