[chef] Re: Re: notifies on resource not notifying

Chronological Thread 
  • From: Seif Attar < >
  • To:
  • Subject: [chef] Re: Re: notifies on resource not notifying
  • Date: Thu, 27 Dec 2012 17:32:02 +0000

Thanks Sean,

My ruby skills are limited, and I didn't quite get that gist or what it was doing, but I did manage to get something working:


I am not sure what
if sub_run_context.resource_collection.any?(&:updated?)

Is supposed to do, as it was always returning false for me. What effects will removing it do? does the provider look sane to you now?

Much appreciated,

On 27 December 2012 15:52, Sean OMeara < " target="_blank"> > wrote:
Hi Seif!

This is a bug in the LWRP DSL.

You can read about it here:

There is a fix coming in Chef 11 which will require a small changes to
the all LWRP code including teamcity and windows cookbooks to make
notifications work.

In the meantime, you modify the teamcity_build LWRP and cargo-cult the
pattern referenced in the above ticket.


Good luck and let me know if you have any questions!


On Thu, Dec 27, 2012 at 10:43 AM, Seif Attar < "> > wrote:
> Hello,
> I am writing a recipe that calls 3 resources, the first resource has
> conditional execution and a notifies, goal being that the other 2 dont run
> unless this one passed the condition.
> I can see the first resource being run, but it doesn't seem to be notifying,
> can someone help figure out what I am messing up? is there a better way to
> go about this?
> Here is a gist of the recipe, and the debug output from Chef 10.16.4:
> https://gist.github.com/4389024
> Any help appreciated.
> Thanks

Archive powered by MHonArc 2.6.16.