Comment 5 for bug 1458095

Revision history for this message
Steve Baker (steve-stevebaker) wrote : Re: [Bug 1458095] Re: Defining actions DELETE, SUSPEND results in: "Cannot signal resource during [ACTION]"

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 ()