From 865b73e80369bdd8a7b44c723654984de36dd4e1 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 12 Nov 2008 10:08:05 -0500 Subject: Present a less-cryptic error if the replication agreement doesn't exist --- ipa-server/ipa-install/ipa-replica-manage | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ipa-server/ipa-install/ipa-replica-manage b/ipa-server/ipa-install/ipa-replica-manage index c0051c7fb..fdd803f60 100755 --- a/ipa-server/ipa-install/ipa-replica-manage +++ b/ipa-server/ipa-install/ipa-replica-manage @@ -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) -- cgit