summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipaserver/plugins/server.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ipaserver/plugins/server.py b/ipaserver/plugins/server.py
index d62c0232c..a3d69a017 100644
--- a/ipaserver/plugins/server.py
+++ b/ipaserver/plugins/server.py
@@ -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]