summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-install
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2008-11-24 15:20:17 -0700
committerSimo Sorce <ssorce@redhat.com>2008-11-25 18:09:49 -0500
commit502aff73a2db3d886d3ded5022996b634e7bd960 (patch)
tree12508dceaed3169f3d2d4457c49269147433cea9 /ipa-server/ipa-install
parent83a4c7207ddfa56b4321dfcfd86f0c501de82558 (diff)
downloadfreeipa-502aff73a2db3d886d3ded5022996b634e7bd960.tar.gz
freeipa-502aff73a2db3d886d3ded5022996b634e7bd960.tar.xz
freeipa-502aff73a2db3d886d3ded5022996b634e7bd960.zip
do not use ipaerror directly in ipa-replica-manage - use ldap exception instead
Diffstat (limited to 'ipa-server/ipa-install')
-rwxr-xr-xipa-server/ipa-install/ipa-replica-manage2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipa-server/ipa-install/ipa-replica-manage b/ipa-server/ipa-install/ipa-replica-manage
index fdd803f60..9d3ac712d 100755
--- a/ipa-server/ipa-install/ipa-replica-manage
+++ b/ipa-server/ipa-install/ipa-replica-manage
@@ -97,7 +97,7 @@ def list_masters(replman, verbose):
def del_master(replman, hostname):
try:
t = replman.get_agreement_type(hostname)
- except ipaerror.exception_for(ipaerror.LDAP_NOT_FOUND):
+ except ldap.NO_SUCH_OBJECT:
print "No replication agreement found for %s" % hostname
if t == replication.IPA_REPLICA: