mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Allow unloaded servers to be deleted API
This commit is contained in:
parent
1b6c7dd478
commit
c51d940234
@ -134,6 +134,14 @@ class ApiServersServerIndexHandler(BaseApiHandler):
|
|||||||
)
|
)
|
||||||
|
|
||||||
self.tasks_manager.remove_all_server_tasks(server_id)
|
self.tasks_manager.remove_all_server_tasks(server_id)
|
||||||
|
failed = False
|
||||||
|
for item in self.controller.servers.failed_servers[:]:
|
||||||
|
if item["server_id"] == int(server_id):
|
||||||
|
self.controller.servers.failed_servers.remove(item)
|
||||||
|
|
||||||
|
if failed:
|
||||||
|
self.controller.remove_unloaded_server(server_id)
|
||||||
|
else:
|
||||||
self.controller.remove_server(server_id, remove_files)
|
self.controller.remove_server(server_id, remove_files)
|
||||||
|
|
||||||
self.controller.management.add_to_audit_log(
|
self.controller.management.add_to_audit_log(
|
||||||
|
Loading…
Reference in New Issue
Block a user