mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
jira: Fixes json reading string object instead of byte (#52660)
This commit is contained in:
committed by
Abhijeet Kasurde
parent
bd0cad6ed7
commit
1651d4f21a
@@ -263,7 +263,7 @@ def request(url, user, passwd, timeout, data=None, method=None):
|
||||
body = response.read()
|
||||
|
||||
if body:
|
||||
return json.loads(body)
|
||||
return json.loads(to_text(body, errors='surrogate_or_strict'))
|
||||
else:
|
||||
return {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user