Created
November 28, 2011 03:51
-
-
Save adamhjk/1399016 to your computer and use it in GitHub Desktop.
Because you are so polite..
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chef > var = node.default[:var] | |
=> #<Chef::Node::Attribute @normal={...}, @current_normal=nil, @default={...}, @current_default={}, @override={...}, @current_override=nil, @automatic={...}, @current_automatic=nil, @current_nesting_level=[:var], @auto_vivifiy_on_read=true, @set_unless_value_present=false, @set_type=:default, @has_been_read=false> | |
chef > var[:a] = 'a' | |
=> "a" | |
chef > var[:b][:c] = 'c' | |
=> "c" | |
chef > node.default[:var] | |
=> #<Chef::Node::Attribute @normal={...}, @current_normal=nil, @default={...}, @current_default={"a"=>"a", "b"=>{"c"=>"c"}}, override{....}, current_overridenil, automatic{....}, current_automaticnil, current_nesting_level[:var], auto_vivifiy_on_readtrue, set_unless_value_presentfalse, set_type:default, has_been_readfalse | |
chef > node.default[:var].to_hash | |
=> {"a"=>"a", "b"=>{"c"=>"c"}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My apologies, I did not describe the bug sufficiently accurately: