I don’t think that’ll work if the default has been set. What I mean is, say you have: node.default[:myapp][:part1][:conf] = ‘XXX’ node.set[:myapp][:part1][:conf] ||= ‘XXX1’ This will probably set node[:myapp][:part1][:conf] to ‘XXX1’, since node.set[:myapp][:part1][:conf] was nil when the ||= operator kicked in. I might be wrong and Chef might be doing some sourcery behind the scenes, but taking only Ruby into account, it wouldn’t work. -- Cassiano Lealhttp://cassianoleal.com http://twitter.com/cassianoleal On July 23, 2013 at 05:21:59, Dorian Jaminais ( ) wrote:
|
Archive powered by MHonArc 2.6.16.