From 1651d4f21a51da716a7bf468620712d9573eafa6 Mon Sep 17 00:00:00 2001 From: Sayed Anisul Hoque Date: Wed, 20 Feb 2019 17:52:01 +0100 Subject: [PATCH] jira: Fixes json reading string object instead of byte (#52660) --- lib/ansible/modules/web_infrastructure/jira.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/web_infrastructure/jira.py b/lib/ansible/modules/web_infrastructure/jira.py index 9912aaaf28..30c523727f 100644 --- a/lib/ansible/modules/web_infrastructure/jira.py +++ b/lib/ansible/modules/web_infrastructure/jira.py @@ -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 {}