[chef] Re: Re: Re: Re: Re: Re: Re: partial search


Chronological Thread 
  • From: Lamont Granquist < >
  • To: < >
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Re: partial search
  • Date: Wed, 13 Feb 2013 15:15:00 -0800


the thing you get back from search is the json-serialized representation of the node, not the chef node ruby object.

search or partial_search always gives similar results to knife search:

knife search node '*:*' -a run_list -Fj

On 2/13/13 2:35 PM, Jesse Campbell wrote:
" type="cite">
Valid point
but node.run_list is a Chef::RunList, which can be treated like a hash that contains name, version, type.
there is no way i can see in partial search to get this object.




On Wed, Feb 13, 2013 at 5:23 PM, Noah Kantrowitz < " target="_blank"> > wrote:
The run list is not an array of hashes, it is stored as an array like ['role[foo]', ...]

--Noah




Archive powered by MHonArc 2.6.16.

§