[chef] Re: Re: Re: Re: Re: Re: question about data bags - best practice


Chronological Thread 
  • From: "steve ." < >
  • To: " " < >
  • Subject: [chef] Re: Re: Re: Re: Re: Re: question about data bags - best practice
  • Date: Wed, 7 Aug 2013 09:44:26 -0700

I'll take a guess here:

Because node.run_state['mysql'] wasn't defined first.


On Tue, Aug 6, 2013 at 10:56 PM, Vladimir Skubriev < " target="_blank"> > wrote:
On 06.08.2013 19:37, Daniel DeLeo wrote:

`node.run_state` is a separate field in the node object that is not included in the serialized json. You can see for yourself by printing `node.to_json`.
when i was do in recipe:
node.run_state['mysql']['server_root_password'] = 'secretpassword'

i recive error:
undefined method `[]=' for nil:NilClass

Why ?


--
Best regards,

CVision Lab System Administrator
Vladmir Skubriev





Archive powered by MHonArc 2.6.16.

§