Jeppe: No, it will not. Because of how the attributes are evaluated, the defaults will be set, then node[:foo][:ver] will be overridden. It’s generally considered best practice, if you’re going to use attributes to compute another attribute, to set the computed attribute in a recipe. Here’s a nice resource for this (and other tidbits): https://wiki.opscode.com/display/chef/Cookbook+Style+Guide+Draft#CookbookStyleGuideDraft-GeneratingData On May 19, 2014 at 1:42:32 PM, Jeppe Nejsum Madsen ( "> ) wrote:
|
Archive powered by MHonArc 2.6.16.