[chef] Re: Re: Re: Re: Exception Handlers with ignore_failure


Chronological Thread 
  • From: Andrea Campi < >
  • To: " " < >
  • Subject: [chef] Re: Re: Re: Re: Exception Handlers with ignore_failure
  • Date: Tue, 4 Dec 2012 14:34:49 +0100




On Tue, Dec 4, 2012 at 2:00 PM, jfotop < " target="_blank"> > wrote:

and how would I use "events.resource_failed"?
In what context?
I tried it in the report function of my exception handler, but all I got was:
ERROR: Report handler MyOrganization::EmailMe raised #<NameError: undefined
local variable or method `events' for #<MyOrganization::EmailMe:0xb775a3d4>>


I haven't tried yet and I don't have any sample code handy.

What I do know is that in your report handler's #report method you can access run_status.events.
Look in there for the failed resources.




Archive powered by MHonArc 2.6.16.

§