use Connectible.disconnect() instead of .destroy_connection()
Destroy connection is an internal function of Connectible and therefore it should not be used directly. https://fedorahosted.org/freeipa/ticket/4991 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
1 parent
7d10547ae3
commit
375eb75833
2 files changed
+3
-3
No files matched your search
@@ -852,7 +852,7 @@ class user_status(LDAPQuery):
|
||||
count += 1
|
||||
|
||||
if host != api.env.host:
|
||||
other_ldap.destroy_connection()
|
||||
other_ldap.disconnect()
|
||||
|
||||
return dict(result=entries,
|
||||
count=count,
|
||||
|
||||
@@ -1077,7 +1077,7 @@ class change_password(Backend, HTTP_Status):
|
||||
message = "Password was changed."
|
||||
finally:
|
||||
if conn.isconnected():
|
||||
conn.destroy_connection()
|
||||
conn.disconnect()
|
||||
|
||||
self.info('%s: %s', status, message)
|
||||
|
||||
@@ -1182,7 +1182,7 @@ class sync_token(Backend, HTTP_Status):
|
||||
data['user'], str(e))
|
||||
finally:
|
||||
if conn.isconnected():
|
||||
conn.destroy_connection()
|
||||
conn.disconnect()
|
||||
|
||||
# Report status and return.
|
||||
response_headers.append(('X-IPA-TokenSync-Result', result))
|
||||
|
||||
Reference in new issue
Block a user