- From: Adam Jacob <
>
- To:
- Subject: [chef] Re: Updating attributes in 0.7.6
- Date: Sat, 8 Aug 2009 12:20:56 -0700
On Sat, Aug 8, 2009 at 11:00 AM, Caleb
Tennis<
>
wrote:
>
When I updated to chef 0.7.6 this morning, I had an issue with my attributes
>
(as noted in CHEF-473), causing this error:
>
/var/chef/cache/cookbooks/portage/definitions/keyword.rb:11:in `+': can't
>
convert Chef::Node::Attribute into String (TypeError)
>
This was because I had attribute code that looked like this:
>
cluster = Mash.new unless attribute?("cluster")
>
cluster[:ruby_version] ||= "1.8.7_p74"
Caleb rocks for finding this bug and working with me to fix it. This
only occurs when you use ||= to set a value. The fix is in my
adamhjk/chef-473 branch, and we'll get it integrated with the mainline
chef and cut a new release with this fix in it on Monday. If you have
lots of ||=, you may want to hold off until then.
(Or just switch over to the new attribute sauce, because it is much
nicer anyway.)
Regards,
Adam
--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E:
Archive powered by MHonArc 2.6.16.