mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Present a less-cryptic error if the replication agreement doesn't exist
This commit is contained in:
@@ -95,7 +95,10 @@ def list_masters(replman, verbose):
|
||||
print " last update ended: %s" % str(ipautil.parse_generalized_time(entry.nsds5replicalastupdateend))
|
||||
|
||||
def del_master(replman, hostname):
|
||||
t = replman.get_agreement_type(hostname)
|
||||
try:
|
||||
t = replman.get_agreement_type(hostname)
|
||||
except ipaerror.exception_for(ipaerror.LDAP_NOT_FOUND):
|
||||
print "No replication agreement found for %s" % hostname
|
||||
|
||||
if t == replication.IPA_REPLICA:
|
||||
dirman_passwd = getpass.getpass("Directory Manager password (%s): " % hostname)
|
||||
|
||||
Reference in New Issue
Block a user