fix caching in get_ipa_config

Different opbject types were compared thus always result of comparation
was False and caching does not work.

https://fedorahosted.org/freeipa/ticket/5463

Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
Martin Basti authored and Jan Cholasta committed 2015-11-19 16:43:52 +01:00
1 parent 4d59a711af
commit 7f0d018c66
1 file changed
+1 -1
+1 -1
View File
@@ -208,7 +208,7 @@ class ldap2(CrudBackend, LDAPClient):
try:
config_entry = getattr(context, 'config_entry')
if config_entry.conn is self.conn:
if config_entry.conn.conn is self.conn:
return config_entry
except AttributeError:
# Not in our context yet