Undefined node attribute makes me think perhaps the order of execution isn't what you're expecting, like maybe the ipfilter recipe is running first.also double check what is inside blocks and what isn't (compile vs converge)... maybe put the ipfilter recipe stuff inside ruby_blocks
On Mon, Feb 18, 2013 at 2:36 PM, Sascha Bates < " target="_blank"> > wrote:
Is it possible that node.set is no longer an alias for node.default.set in a recipe? I've been having some of my own struggles recently with attributes but I've always operated on the idea that you have to use .set in a recipe if the attr is not previously defined.
So the next thing I'd try is just node.default.set if you have not previously defined the attribute elsewhere.
Ok- no go on either suggestion.Using .default had no effect and the second idea resulted in:FATAL: NoMethodError: Undefined node attribute or method `push' on `node'
Any other ideas?Yonahcould try this also perhaps:
node.set['ipf_rules'][i]['src_nets'].delete(src_net)
which chef version?try node.default instead of node.set or node.override?i think there is more to it but thats' what came to mind first.Hi,
Archive powered by MHonArc 2.6.16.