[chef] Re: checksum values in attribute files


Chronological Thread 
  • From: Christopher Kampmeier < >
  • To: " " < >
  • Subject: [chef] Re: checksum values in attribute files
  • Date: Mon, 22 Jul 2013 20:05:07 -0500

Excellent.  That was the issue.  Since we're so used to representing a hierarchy of attributes, we lost sight of this special circumstance. It's a wonder that we don't encounter this more often.

Thanks for your insight.


On Monday, July 22, 2013, Daniel DeLeo wrote:

On Monday, July 22, 2013 at 2:37 PM, Lucas Hansen wrote:

IndexError
----------
string not matched


Cookbook Trace:
---------------
/.../chef/cookbooks/foo/attributes/default.rb:6:in `[]='
/.../chef/cookbooks/foo/attributes/default.rb:6:in `from_file'


Relevant File Content:
----------------------
/.../chef/cookbooks/foo/attributes/default.rb:

1: ...
...
6>> default['foo']['package']['checksum'] =
'c22bb6a227359748618ca1f6fc31b6a05fef3f19dc8251ffb15233b775cd6aff'

Is default["foo"]["package"] set to a string?

Looks like the same error as this:

irb(main):004:0> "xyz"["a"] = "b"
IndexError: string not matched
from (irb):4:in `[]='


-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§