From 412104e34c0f85f32a4991bed0393b22e7cdf345 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 5 Feb 2009 13:12:11 -0500 Subject: Remove more unused files and functions, replace ipaerror with new error classes --- ipaserver/install/replication.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ipaserver/install/replication.py') diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py index 33ed9c8ac..12db0eb0c 100644 --- a/ipaserver/install/replication.py +++ b/ipaserver/install/replication.py @@ -23,8 +23,8 @@ import ldap from ipaserver.install import dsinstance from ipaserver import ipaldap from ldap import modlist -from ipa import ipaerror from ipalib import util +from ipalib import errors2 DIRMAN_CN = "cn=directory manager" CACERT="/usr/share/ipa/html/ca.crt" @@ -148,7 +148,7 @@ class ReplicationManager: conn.getEntry(dn, ldap.SCOPE_BASE) # replication is already configured return - except ipaerror.exception_for(ipaerror.LDAP_NOT_FOUND): + except errors2.NotFound: pass replica_type = self.get_replica_type() @@ -220,7 +220,7 @@ class ReplicationManager: try: entry = self.conn.getEntry("cn=mapping tree,cn=config", ldap.SCOPE_ONELEVEL, "(cn=\"%s\")" % (self.suffix)) - except ipaerror.exception_for(ipaerror.LDAP_NOT_FOUND), e: + except errors2.NotFound, e: logging.debug("failed to find mappting tree entry for %s" % self.suffix) raise e @@ -256,7 +256,7 @@ class ReplicationManager: conn.getEntry(pass_dn, ldap.SCOPE_BASE) print "Windows PassSync entry exists, not resetting password" return - except ipaerror.exception_for(ipaerror.LDAP_NOT_FOUND): + except errors2.NotFound: pass # The user doesn't exist, add it @@ -315,7 +315,7 @@ class ReplicationManager: try: a.getEntry(dn, ldap.SCOPE_BASE) return - except ipaerror.exception_for(ipaerror.LDAP_NOT_FOUND): + except errors2.NotFound: pass iswinsync = kargs.get("winsync", False) -- cgit