diff options
author | Petr Viktorin <pviktori@redhat.com> | 2013-01-21 07:40:42 -0500 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-03-01 16:59:45 +0100 |
commit | f5c404c65d81d9a28f171fabe7c5749d6c37f102 (patch) | |
tree | 2144594e18108034898baf93780e37eb8bbe6027 /ipaserver/install/plugins | |
parent | 66eaf1220da3e3fccd54b8f6a54f7d116818b024 (diff) | |
download | freeipa.git-f5c404c65d81d9a28f171fabe7c5749d6c37f102.tar.gz freeipa.git-f5c404c65d81d9a28f171fabe7c5749d6c37f102.tar.xz freeipa.git-f5c404c65d81d9a28f171fabe7c5749d6c37f102.zip |
Replace entry.getValue by entry.single_value
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 | 4 |
1 files changed, 2 insertions, 2 deletions
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) |