mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Replace deleteEntry with delete_entry
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
This commit is contained in:
committed by
Martin Kosek
parent
f8ad7cb96f
commit
e815c1893d
@@ -308,8 +308,8 @@ def del_link(realm, replica1, replica2, dirman_passwd, force=False):
|
||||
entries = repl1.conn.get_entries(dn, ldap.SCOPE_SUBTREE)
|
||||
if entries:
|
||||
entries.sort(key=len, reverse=True)
|
||||
for dn in entries:
|
||||
repl1.conn.deleteEntry(dn)
|
||||
for entry in entries:
|
||||
repl1.conn.delete_entry(entry)
|
||||
except Exception, e:
|
||||
print "Error deleting winsync replica shared info: %s" % convert_error(e)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user