summaryrefslogtreecommitdiffstats
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:10:13 -0500
commit2d6ef97254f4fc9ca0df01d31d2b9d3e66473f82 (patch)
tree214457ffba6f09619bc060abd6110083d0e4007b
parent91351224520337375a7b6e9b72635d0308755560 (diff)
downloadfreeipa-2d6ef97254f4fc9ca0df01d31d2b9d3e66473f82.zip
freeipa-2d6ef97254f4fc9ca0df01d31d2b9d3e66473f82.tar.gz
freeipa-2d6ef97254f4fc9ca0df01d31d2b9d3e66473f82.tar.xz
do not use ipaerror directly in ipa-replica-manage - use ldap exception instead
-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 fdd803f..9d3ac71 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: