Replace entry.setValue/setValues by item assignment

Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
This commit is contained in:
Petr Viktorin
2013-03-01 16:59:44 +01:00
committed by Martin Kosek
parent c613caab67
commit 66c7fd1323
5 changed files with 21 additions and 44 deletions
@@ -82,7 +82,7 @@ class update_replica_attribute_lists(PreUpdate):
current = replica.toDict()
# Need to add it altogether
replica.setValues(attribute, template % " ".join(values))
replica[attribute] = [template % " ".join(values)]
try:
repl.conn.updateEntry(replica.dn, current, replica.toDict())
@@ -100,8 +100,8 @@ class update_replica_attribute_lists(PreUpdate):
', '.join(missing))
current = replica.toDict()
replica.setValue(attribute,
'%s %s' % (attrlist, ' '.join(missing)))
replica[attribute] = [
'%s %s' % (attrlist, ' '.join(missing))]
try:
repl.conn.updateEntry(replica.dn, current, replica.toDict())