You're asking two different questions here, and the solution will depend on which is actually the case.If you really just need for one resource to be dependent on the other, use the action :nothing / notifies pattern:execute "bye" docommand "xxx"action :nothingend…foo "bar" doaction :helloworld
notifies :run, "execute[bye]"endIf you actually need to send the exit status from one resource to the other, then you'll probably need to hack something on your provider to populate a node attribute, I think… :)- cassianoOn Monday, May 20, 2013 at 14:22, howard chen wrote:
I have written a custom provider, fooaction :helloworld do...endAnd in my recipe, I have lines..foo "bar" doaction : helloworldend....execute "bye" docommand "xxx"action :runendHow to make my last execute block run only if my custom provider "foo" is executed correctly?i.e. How to make my helloworld action return success/error status and such that the later block can make use of this value?Thanks.
Archive powered by MHonArc 2.6.16.