summaryrefslogtreecommitdiff
path: root/lib/chef/node.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@opscode.com>2013-01-29 14:05:07 -0800
committerLamont Granquist <lamont@opscode.com>2013-01-29 14:05:07 -0800
commitb49d3f71e3c883ef66bc4f581ae2f82244063e32 (patch)
tree5e9e82636fbe53092dad40b3869b19719b3127fc /lib/chef/node.rb
parent1f03cb4604b1944d20afd0faf292686fcb0f012b (diff)
downloadchef-b49d3f71e3c883ef66bc4f581ae2f82244063e32.tar.gz
the set_unless state is bleeding from call to call...
Diffstat (limited to 'lib/chef/node.rb')
-rw-r--r--lib/chef/node.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/node.rb b/lib/chef/node.rb
index 0caf6602fe..b301045b28 100644
--- a/lib/chef/node.rb
+++ b/lib/chef/node.rb
@@ -123,6 +123,7 @@ class Chef
# Set a normal attribute of this node, but auto-vivify any Mashes that
# might be missing
def normal
+ attributes.set_unless_value_present = false
attributes.normal
end
@@ -139,12 +140,14 @@ class Chef
# Set a default of this node, but auto-vivify any Mashes that might
# be missing
def default
+ attributes.set_unless_value_present = false
attributes.default
end
# Set a force default attribute. Intermediate mashes will be created by
# auto-vivify if necessary.
def default!
+ attributes.set_unless_value_present = false
attributes.default!
end
@@ -158,12 +161,14 @@ class Chef
# Set an override attribute of this node, but auto-vivify any Mashes that
# might be missing
def override
+ attributes.set_unless_value_present = false
attributes.override
end
# Set a force override attribute. Intermediate mashes will be created by
# auto-vivify if needed.
def override!
+ attributes.set_unless_value_present = false
attributes.override!
end