1
0
mirror of https://github.com/ansible-collections/community.general.git synced 2025-07-29 07:41:16 +03: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:
Abhijeet Kasurde
2020-04-01 17:09:38 +05:30
committed by GitHub
parent 07e8911fd8
commit de0409e793
2 changed files with 3 additions and 1 deletions

View File

@ -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)