Add LDAPEntry method generate_modlist.

Use LDAPEntry.generate_modlist instead of LDAPClient._generate_modlist and
remove LDAPClient._generate_modlist.

https://fedorahosted.org/freeipa/ticket/3488
This commit is contained in:
Jan Cholasta authored and Petr Viktorin committed 2014-01-10 14:41:39 +01:00
1 parent 9d4bcb63de
commit 61887ac392
3 files changed
+41 -48

No files matched your search

+1 -1
View File
@@ -718,7 +718,7 @@ class LDAPUpdate:
else:
# Update LDAP
try:
changes = self.conn._generate_modlist(entry.dn, entry)
changes = entry.generate_modlist()
if len(changes) >= 1:
updated = True
safe_changes = []
+1 -1
View File
@@ -114,7 +114,7 @@ def update_schema(schema_files, ldapi=False, dm_password=None, live_run=True):
# FIXME: We should have a better way to display the modlist,
# for now display raw output of our internal routine
modlist = conn._generate_modlist(schema_entry.dn, schema_entry)
modlist = schema_entry.generate_modlist()
log.debug("Complete schema modlist:\n%s", pprint.pformat(modlist))
if modified and live_run: