Merge "Prevent deploy delete on controller 1"

This commit is contained in:
Zuul 2024-09-10 20:04:09 +00:00 committed by Gerrit Code Review
commit ec372f6ef7

View File

@ -3133,6 +3133,10 @@ class PatchController(PatchService):
:return: dict of info, warning and error messages
"""
if self.hostname != constants.CONTROLLER_0_HOSTNAME:
raise SoftwareServiceError("Deployment deletion can only be performed on controller-0.")
msg_info = ""
msg_warning = ""
msg_error = ""