mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00: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>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user