mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-02 23:31:25 -07: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
|
@ -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…
Add table
Add a link
Reference in a new issue