Hello, Fix for https://fedorahosted.org/freeipa/ticket/5424
thanks, Gabe
From f2f0deee5ca743518d97efe4f01cc22c0672e87a Mon Sep 17 00:00:00 2001 From: Gabe <redhatri...@gmail.com> Date: Sun, 8 Nov 2015 17:18:17 -0700 Subject: [PATCH] ipa-replica-manage del continues when host does not exist in domain level 1 - Raises error and stops operation unless --cleanup is specified. https://fedorahosted.org/freeipa/ticket/5424 --- install/tools/ipa-replica-manage | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install/tools/ipa-replica-manage b/install/tools/ipa-replica-manage index b9998da44dcc1f01c5eb342ee713634de0ee84ee..ccd48eb635a27b5752484ce68b094c2daf7291fa 100755 --- a/install/tools/ipa-replica-manage +++ b/install/tools/ipa-replica-manage @@ -740,7 +740,12 @@ def del_master_managed(realm, hostname, options): try: api.Command.server_del(hostname_u) except errors.NotFound: - print("Server entry already deleted: %s" % (hostname)) + if not options.cleanup: + print("%s does not exist. Please specify an actual server or add" \ + " the\n--cleanup option to force clean up." % (hostname)) + sys.exit(1) + else: + print("Server entry already deleted: %s" % (hostname)) # 6. Cleanup try: -- 2.5.0
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code