mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
Don't ignore --ignore-last-of-role for last CA
Use a handler created for the purpose of deciding whether to raise exception or not. https://fedorahosted.org/freeipa/ticket/6259 Reviewed-By: Oleg Fayans <ofayans@redhat.com>
This commit is contained in:
parent
ec0a58e484
commit
f0487946cd
@ -499,9 +499,10 @@ class server_del(LDAPDelete):
|
||||
'ca_renewal_master_server', [])
|
||||
|
||||
if ca_servers == [hostname]:
|
||||
raise errors.ServerRemovalError(
|
||||
reason=_("Deleting this server is not allowed as it would "
|
||||
"leave your installation without a CA."))
|
||||
handler(
|
||||
_("Deleting this server is not allowed as it would "
|
||||
"leave your installation without a CA."),
|
||||
ignore_last_of_role)
|
||||
|
||||
if ca_renewal_master == hostname:
|
||||
other_cas = [ca for ca in ca_servers if ca != hostname]
|
||||
|
Loading…
Reference in New Issue
Block a user