[chef] Re: Any reason not to deep merge lwrp values and default?


Chronological Thread 
  • From: Noah Kantrowitz < >
  • To:
  • Subject: [chef] Re: Any reason not to deep merge lwrp values and default?
  • Date: Sat, 3 Jan 2015 17:20:54 -0800


On Jan 3, 2015, at 5:10 PM, Bráulio Bhavamitra 
< >
 wrote:

> Hello all,
> 
> I've realized that the deep merge done for node attributes is not done
> for LWRP attributes and theirs defaults. Is there any specific reason
> for that?.
> 
> I'm reimplementing set_or_return for this.

Because resource attributes are used for a lot of different things and 
between the two, a simple || default is a better general semantic. Use the 
option_collector helper in Poise to get the semantics you are probably 
looking for and a nicer syntax too.

--Noah

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail




Archive powered by MHonArc 2.6.16.

§