diff options
author | Jan Cholasta <jcholast@redhat.com> | 2013-09-10 10:20:24 +0000 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2013-11-05 13:56:55 +0100 |
commit | df5f4ee81d1aff1122dd92ab1b56eb335294c3a7 (patch) | |
tree | b112b429a896789029038bd3e25218495b647d56 /ipaserver/install/plugins | |
parent | 989493979da3ef1136a9b346cace5689ef22eed8 (diff) | |
download | freeipa.git-df5f4ee81d1aff1122dd92ab1b56eb335294c3a7.tar.gz freeipa.git-df5f4ee81d1aff1122dd92ab1b56eb335294c3a7.tar.xz freeipa.git-df5f4ee81d1aff1122dd92ab1b56eb335294c3a7.zip |
Turn LDAPEntry.single_value into a dictionary-like property.
This change makes single_value consistent with the raw property.
https://fedorahosted.org/freeipa/ticket/3521
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 4f656924..bfd6356b 100644 --- a/ipaserver/install/plugins/fix_replica_agreements.py +++ b/ipaserver/install/plugins/fix_replica_agreements.py @@ -52,7 +52,7 @@ class update_replica_attribute_lists(PreUpdate): self.log.debug("Found %d agreement(s)", len(ipa_replicas)) for replica in ipa_replicas: - self.log.debug(replica.single_value('description', None)) + self.log.debug(replica.single_value.get('description')) self._update_attr(repl, replica, 'nsDS5ReplicatedAttributeList', @@ -81,7 +81,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.single_value(attribute, None) + attrlist = replica.single_value.get(attribute) if attrlist is None: self.log.debug("Adding %s", attribute) |