From f5c404c65d81d9a28f171fabe7c5749d6c37f102 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 21 Jan 2013 07:40:42 -0500 Subject: Replace entry.getValue by entry.single_value Part of the work for: https://fedorahosted.org/freeipa/ticket/2660 --- ipaserver/install/plugins/fix_replica_agreements.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipaserver/install/plugins') diff --git a/ipaserver/install/plugins/fix_replica_agreements.py b/ipaserver/install/plugins/fix_replica_agreements.py index 9f2c2414..bbebbbc0 100644 --- a/ipaserver/install/plugins/fix_replica_agreements.py +++ b/ipaserver/install/plugins/fix_replica_agreements.py @@ -47,7 +47,7 @@ class update_replica_attribute_lists(PreUpdate): entries = repl.find_replication_agreements() self.log.debug("Found %d agreement(s)", len(entries)) for replica in entries: - self.log.debug(replica.getValue('description')) + self.log.debug(replica.single_value('description', None)) self._update_attr(repl, replica, 'nsDS5ReplicatedAttributeList', @@ -76,7 +76,7 @@ class update_replica_attribute_lists(PreUpdate): :param values: List of values the attribute should hold :param template: Template to use when adding attribute """ - attrlist = replica.getValue(attribute) + attrlist = replica.single_value(attribute, None) if attrlist is None: self.log.debug("Adding %s", attribute) -- cgit