mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
@@ -740,7 +740,13 @@ 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("{hostname} does not exist.".format(hostname=hostname))
|
||||
print("Please specify an actual server or add the --cleanup "
|
||||
"option to force clean up.")
|
||||
sys.exit(1)
|
||||
else:
|
||||
print("Server entry already deleted: %s" % (hostname))
|
||||
|
||||
# 6. Cleanup
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user