diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-11-12 10:08:05 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-11-12 15:53:00 -0500 |
commit | 93c2e4e3b4962499d4b6fb5dc955b7762566a771 (patch) | |
tree | 3061423f97248a5b3bf83a73b6fd210b6ded08ce /ipa-server | |
parent | 17261c2520e941e8ec01b02855830b5dc7fc8d66 (diff) | |
download | freeipa.git-93c2e4e3b4962499d4b6fb5dc955b7762566a771.tar.gz freeipa.git-93c2e4e3b4962499d4b6fb5dc955b7762566a771.tar.xz freeipa.git-93c2e4e3b4962499d4b6fb5dc955b7762566a771.zip |
Present a less-cryptic error if the replication agreement doesn't exist
Diffstat (limited to 'ipa-server')
-rwxr-xr-x | ipa-server/ipa-install/ipa-replica-manage | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ipa-server/ipa-install/ipa-replica-manage b/ipa-server/ipa-install/ipa-replica-manage index c0051c7f..fdd803f6 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) |