diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-02-10 16:04:28 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-02-11 17:13:54 -0500 |
commit | 00029a0b38cedbdecca786238f8005045b4db36c (patch) | |
tree | bad2a7c156843ba60ff9d78e45f5b98df8e1d730 /ipaserver | |
parent | 55ba300c7cb59cf05b16cc01281f51d93eb25acf (diff) | |
download | freeipa-00029a0b38cedbdecca786238f8005045b4db36c.tar.gz freeipa-00029a0b38cedbdecca786238f8005045b4db36c.tar.xz freeipa-00029a0b38cedbdecca786238f8005045b4db36c.zip |
Remove references to detail. This was used by the v1 exception system
Diffstat (limited to 'ipaserver')
-rw-r--r-- | ipaserver/install/ldapupdate.py | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/ipaserver/install/ldapupdate.py b/ipaserver/install/ldapupdate.py index ed08751c0..bc9a6cd9c 100644 --- a/ipaserver/install/ldapupdate.py +++ b/ipaserver/install/ldapupdate.py @@ -93,23 +93,6 @@ class LDAPUpdate: except ldap.INVALID_CREDENTIALS, e : raise RuntimeError("The password provided is incorrect for LDAP server %s" % fqdn) - def __detail_error(self, detail): - """IPA returns two errors back. One a generic one indicating the broad - problem and a detailed message back as well which should have come - from LDAP. This function will parse that into a human-readable - string. - """ - msg = "" - desc = detail[0].get('desc') - info = detail[0].get('info') - - if desc: - msg = desc - if info: - msg = msg + " " + info - - return msg - def __identify_arch(self): """On multi-arch systems some libraries may be in /lib64, /usr/lib64, etc. Determine if a suffix is needed based on the current @@ -331,7 +314,7 @@ class LDAPUpdate: logging.error("Task not found: %s", dn) return except errors.DatabaseError, e: - logging.error("Task lookup failure %s: %s", e, self.__detail_error(e.detail)) + logging.error("Task lookup failure %s", e) return status = entry.getValue('nstaskstatus') @@ -522,7 +505,7 @@ class LDAPUpdate: if self.live_run: self.conn.addEntry(entry.dn, entry.toTupleList()) except Exception, e: - logging.error("Add failure %s: %s", e, self.__detail_error(e.detail)) + logging.error("Add failure %s", e) else: # Update LDAP try: @@ -541,7 +524,7 @@ class LDAPUpdate: logging.info("Entry already up-to-date") updated = False except errors.DatabaseError, e: - logging.error("Update failed: %s: %s", e, self.__detail_error(e.detail)) + logging.error("Update failed: %s", e) updated = False if ("cn=index" in entry.dn and |