[chef-dev] Re: Re: Re: Re: Setting node attributes with a knife plugin


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef-dev] Re: Re: Re: Re: Setting node attributes with a knife plugin
  • Date: Thu, 26 Jan 2012 02:08:18 -0800 (PST)


Hi,

I rewrote most parts of the plugin and opted for yet another way.

First I create a nested mash from the attribute path that was passed by the
user and set the value on the innermost part to the string I want it to be.

Then I deep merge it with the nodes (default|normal|override)_attrs and save
the node.

This does the trick pretty nice.

Cheers,

Oscar


  • [chef-dev] Re: Re: Re: Re: Setting node attributes with a knife plugin, os4839, 01/26/2012

Archive powered by MHonArc 2.6.16.

§