]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/barbican.py: convert to str before json.loads()
authorKefu Chai <kchai@redhat.com>
Mon, 6 Apr 2020 09:36:18 +0000 (17:36 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 7 Apr 2020 13:51:23 +0000 (21:51 +0800)
commitc79e1e1a525e08d55fd60c2333e8f5d4df603350
tree87b639c67545f4a89f3534b647f1573dd4191918
parent590e9b35aa86ab3e70561a8ecde21da2729dafb3
qa/tasks/barbican.py: convert to str before json.loads()

in Python3, json.loads() expects a string, while
HTTPConnection.getresponse() returns a byte-like object, so we need to
coerce it to str first.

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/barbican.py