lib/itamae/node.rb in itamae-1.0.10 vs lib/itamae/node.rb in itamae-1.0.11

- old
+ new

@@ -9,8 +9,20 @@ end def reverse_merge!(other_hash) self.replace(reverse_merge(other_hash)) end + + def [](key) + val = super(key) + if val.nil? + begin + val = host_inventory[key] + rescue NotImplementedError + val = nil + end + end + val + end end end