ipa module utils can not handle HA FreeIPA with Python3 #71110 (#71112)

* BUGFIX 2.9 ipa module utils can not handle HA FreeIPA with Python3

* Resolve comments on other PR
pull/71166/head
David Marthy 5 years ago committed by GitHub
parent aa58d8c9ed
commit e859a2b4e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- ipa_hostgroup - fix an issue with load-balanced ipa and cookie handling with Python 3 - (https://github.com/ansible/ansible/issues/71110).

@ -96,7 +96,7 @@ class IPAClient(object):
if status_code not in [200, 201, 204]:
self._fail('login', info['msg'])
self.headers = {'Cookie': resp.info().get('Set-Cookie')}
self.headers = {'Cookie': info.get('set-cookie')}
except Exception as e:
self._fail('login', to_native(e))
if not self.headers:

Loading…
Cancel
Save