[chef] Re: 0.9.14 removed #symbolize_keys


Chronological Thread 
  • From: Matt Ray < >
  • To:
  • Subject: [chef] Re: 0.9.14 removed #symbolize_keys
  • Date: Fri, 11 Mar 2011 07:24:03 -0600

It looks like you were counting on Data Bags to be a Hash, they're now
proper Data Bag objects so you'll need to update your syntax. Chef
0.9.14 fixed it in this ticket:
http://tickets.opscode.com/browse/CHEF-1988

Thanks,
Matt Ray
Technical Evangelist | Opscode, Inc
E: 

 T: (512) 731-2218
Twitter, Github: mattray



On Fri, Mar 11, 2011 at 5:56 AM, Ash Berlin 
< >
 wrote:
> So on 0.9.12 this was working fine:
>
> template "/etc/init.d/unicorn-#{app_id}" do
>  mode 0755
>  variables app.symbolize_keys.to_hash
>  source "init-unicorn.erb"
>  cookbook "application"
> end
>
> After upgrading to 0.9.14 however:
>
> /var/cache/chef/cookbooks/application/recipes/unicorn.rb:63:in `from_file': 
> undefined method `symbolize_keys' for <Chef::DataBagItem:0x7f9419a8be98> 
> (NoMethodError)
>
> Thoughts? Should this not have worked in the first place?
>
> -ash



Archive powered by MHonArc 2.6.16.

§