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/ldapupdate.py | |
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/ldapupdate.py')
-rw-r--r-- | ipaserver/install/ldapupdate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipaserver/install/ldapupdate.py b/ipaserver/install/ldapupdate.py index 55f0ecaf..899e31fc 100644 --- a/ipaserver/install/ldapupdate.py +++ b/ipaserver/install/ldapupdate.py @@ -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 |