Replace deleteEntry with delete_entry

Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
This commit is contained in:
Petr Viktorin
2013-01-23 09:35:55 -05:00
committed by Martin Kosek
parent f8ad7cb96f
commit e815c1893d
6 changed files with 13 additions and 18 deletions

View File

@@ -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)