mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
ipa module utils: BUGFIX ipa modules Cookie problem with Loadbalanced IPA and Python3 (… (#738)
* BUGFIX ipa modules Cookie problem with Loadbalanced IPA and Python3 (#737)
* Update changelogs/fragments/738-ipa-python3.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/module_utils/ipa.py
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 0951833a6c
)
This commit is contained in:
parent
8b0896a43d
commit
7bd987e2b9
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/738-ipa-python3.yml
Normal file
2
changelogs/fragments/738-ipa-python3.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- ipa_hostgroup - fix an issue with load-balanced ipa and cookie handling with Python 3 (https://github.com/ansible-collections/community.general/issues/737).
|
|
@ -83,7 +83,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…
Reference in a new issue