From df5f4ee81d1aff1122dd92ab1b56eb335294c3a7 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Tue, 10 Sep 2013 10:20:24 +0000 Subject: 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 --- ipaserver/install/ldapupdate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipaserver/install/ldapupdate.py') diff --git a/ipaserver/install/ldapupdate.py b/ipaserver/install/ldapupdate.py index 34dd3a5e..9140231c 100644 --- a/ipaserver/install/ldapupdate.py +++ b/ipaserver/install/ldapupdate.py @@ -482,7 +482,7 @@ class LDAPUpdate: self.error("Task lookup failure %s", e) return - status = entry.single_value('nstaskstatus', None) + status = entry.single_value.get('nstaskstatus') if status is None: # task doesn't have a status yet time.sleep(1) @@ -842,7 +842,7 @@ class LDAPUpdate: if entry.dn.endswith(DN(('cn', 'index'), ('cn', 'userRoot'), ('cn', 'ldbm database'), ('cn', 'plugins'), ('cn', 'config'))) and (added or updated): - taskid = self.create_index_task(entry.single_value('cn')) + taskid = self.create_index_task(entry.single_value['cn']) self.monitor_index_task(taskid) return -- cgit