mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-09-03 20:52:56 -05:00
Replace entry.setValue/setValues by item assignment
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
This commit is contained in:
committed by
Martin Kosek
parent
c613caab67
commit
66c7fd1323
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user