diff options
author | Marc Aubry <maubry@internap.com> | 2016-09-27 17:42:53 -0400 |
---|---|---|
committer | Maxime Belanger <mbelanger@iweb.com> | 2016-11-08 11:30:30 -0500 |
commit | e512550ab7d61b8bdafd50022dfa8b80a8502922 (patch) | |
tree | dfe83802232e1ec7263ed6f1166b38ded40d4db7 /requirements.txt | |
parent | 32c415e76b7f7892530a238b2fd5e33e262f27bb (diff) | |
download | python-ironicclient-e512550ab7d61b8bdafd50022dfa8b80a8502922.tar.gz |
Fix python3 compatibility when HTTP Error are returned1.8.0
When trying to contact Ironic with a bad token, Forbidden exception
should be raised, in python3 a TypeError is raised due to json
lib being unable do decode a bytes object.
In order to be really python3 compatible, the json lib was replaced
with oslo.serialization module jsontuils since it's the recommended
migration to python3 guide. This is to ensure that data coming from
the requests lib can be read even if it's not string any more but
bytes.
https://wiki.openstack.org/wiki/Python3
Change-Id: I27540f58e31817d4de604334bc4c62899d82f4cc
Closes-Bug: #1629068
Diffstat (limited to 'requirements.txt')
-rw-r--r-- | requirements.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/requirements.txt b/requirements.txt index 51adac6..24b7cc7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,6 +8,7 @@ jsonschema!=2.5.0,<3.0.0,>=2.0.0 # MIT keystoneauth1>=2.14.0 # Apache-2.0 osc-lib>=1.2.0 # Apache-2.0 oslo.i18n>=2.1.0 # Apache-2.0 +oslo.serialization>=1.10.0 # Apache-2.0 oslo.utils>=3.18.0 # Apache-2.0 PrettyTable<0.8,>=0.7.1 # BSD python-openstackclient>=3.3.0 # Apache-2.0 |