[chef-dev] Re: Re: Re: How to represent nested attributes


Chronological Thread 
  • From: Jeremy Bingham < >
  • To:
  • Subject: [chef-dev] Re: Re: Re: How to represent nested attributes
  • Date: Mon, 7 Jul 2014 14:46:27 -0700

Dots seem reasonable to me. I had already been thinking about an optional alternate search syntax for goiardi, and had been trying to decide how to specify nested keys better than using underscores.

-j


On Mon, Jul 7, 2014 at 2:40 PM, Noah Kantrowitz < " target="_blank"> > wrote:
Maybe before 11.14 is finalized, we should change the whitelist code to use .s then? Not sure if thats too big a change for an RC :-/

--Noah

On Jul 7, 2014, at 2:37 PM, Adam Jacob < "> > wrote:

> I lean towards dots as well. Sadly, dots in the search syntax probably won't be forthcoming, and underscores are a terrible separator.
>
>
> On Mon, Jul 7, 2014 at 2:31 PM, Joseph Anthony Pasquale Holsten < "> > wrote:
> My tooling takes attribute selectors with `.` separators and drills into things accordingly. Because JSON.
>
> eg https://github.com/josephholsten/discoteq/blob/master/chef/service.go#L128
>
> On Jul 7, 2014, at 2:09 PM, Noah Kantrowitz < "> > wrote:
>
> > Something that could maybe do with a bit of standardization. The issue is given some nested hashes, how do you indicate a specific key. The attribute declaration and the new attribute whitelists use a "/" separator, most knife command line options use a "." and partial searches use none and require a real array. Thoughts?
> >
> > --Noah
> >
>
>





Archive powered by MHonArc 2.6.16.

§