On 05/06/15 17:04, pradeep kumar singh wrote:
> You mean to say Resource class needs to implement no_signal_action, which performs the validation.
> And SoftwareDeployment should override is no_signal_action and simply return False, so that signal can be sent to the Resource.
No, Resource needs a class attribute:
no_signal_actions = (self.SUSPEND, self.DELETE)
The current code will use self.no_signal_actions to decide what signals
to process. Then SoftwareDeployment just needs to override
no_signal_actions to be an empty tule ()
On 05/06/15 17:04, pradeep kumar singh wrote:
> You mean to say Resource class needs to implement no_signal_action, which performs the validation.
> And SoftwareDeployment should override is no_signal_action and simply return False, so that signal can be sent to the Resource.
No, Resource needs a class attribute:
no_signal_ actions = (self.SUSPEND, self.DELETE)
The current code will use self.no_ signal_ actions to decide what signals
to process. Then SoftwareDeployment just needs to override
no_signal_actions to be an empty tule ()