Merge "Prevent deploy delete on controller 1"
This commit is contained in:
commit
ec372f6ef7
@ -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 = ""
|
||||
|
Loading…
Reference in New Issue
Block a user