mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-09-03 20:52:56 -05:00
do not use ipaerror directly in ipa-replica-manage - use ldap exception instead
This commit is contained in:
committed by
Simo Sorce
parent
83a4c7207d
commit
502aff73a2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user