Browse code

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

David Marthy authored on 2020/08/08 05:36:06
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,2 @@
0
+bugfixes:
1
+   - 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):
96 96
                 if status_code not in [200, 201, 204]:
97 97
                     self._fail('login', info['msg'])
98 98
 
99
-                self.headers = {'Cookie': resp.info().get('Set-Cookie')}
99
+                self.headers = {'Cookie': info.get('set-cookie')}
100 100
             except Exception as e:
101 101
                 self._fail('login', to_native(e))
102 102
         if not self.headers: