mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
ipa: Remove redundant encoding in json.loads (#87)
Fixes: ansible/ansible#66592 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
07e8911fd8
commit
de0409e793
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/66592_ipa_encoding_fix.yml
Normal file
2
changelogs/fragments/66592_ipa_encoding_fix.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- Remove redundant encoding in json.load call in ipa module_utils (https://github.com/ansible/ansible/issues/66592).
|
|
@ -156,7 +156,7 @@ class IPAClient(object):
|
|||
charset = response_charset
|
||||
else:
|
||||
charset = 'latin-1'
|
||||
resp = json.loads(to_text(resp.read(), encoding=charset), encoding=charset)
|
||||
resp = json.loads(to_text(resp.read(), encoding=charset))
|
||||
err = resp.get('error')
|
||||
if err is not None:
|
||||
self._fail('response %s' % method, err)
|
||||
|
|
Loading…
Reference in a new issue