Replace entry.getValue by entry.single_value

Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
This commit is contained in:
Petr Viktorin
2013-01-21 07:40:42 -05:00
committed by Martin Kosek
parent 66eaf1220d
commit f5c404c65d
11 changed files with 94 additions and 88 deletions

View File

@@ -458,7 +458,7 @@ class LDAPUpdate:
self.error("Task lookup failure %s", e)
return
status = entry.getValue('nstaskstatus')
status = entry.single_value('nstaskstatus', None)
if status is None:
# task doesn't have a status yet
time.sleep(1)
@@ -816,7 +816,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.getValue('cn'))
taskid = self.create_index_task(entry.single_value('cn'))
self.monitor_index_task(taskid)
return