diff --git a/software/software/software_controller.py b/software/software/software_controller.py index 25728a54..30096059 100644 --- a/software/software/software_controller.py +++ b/software/software/software_controller.py @@ -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 = ""