diff options
author | Petr Viktorin <pviktori@redhat.com> | 2013-01-21 04:42:16 -0500 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-03-01 16:59:44 +0100 |
commit | 66c7fd1323619a99c48eb9babe4cbe7f48dca303 (patch) | |
tree | b8c8a7a711cfd5380a30d16c7a771a9e4599fb9e /ipaserver/install/plugins | |
parent | c613caab67337293a410c07713c89345d0124f2c (diff) | |
download | freeipa.git-66c7fd1323619a99c48eb9babe4cbe7f48dca303.tar.gz freeipa.git-66c7fd1323619a99c48eb9babe4cbe7f48dca303.tar.xz freeipa.git-66c7fd1323619a99c48eb9babe4cbe7f48dca303.zip |
Replace entry.setValue/setValues by item assignment
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
Diffstat (limited to 'ipaserver/install/plugins')
-rw-r--r-- | ipaserver/install/plugins/fix_replica_agreements.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipaserver/install/plugins/fix_replica_agreements.py b/ipaserver/install/plugins/fix_replica_agreements.py index 2819acc9..54cbdd4d 100644 --- a/ipaserver/install/plugins/fix_replica_agreements.py +++ b/ipaserver/install/plugins/fix_replica_agreements.py @@ -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()) |