summaryrefslogtreecommitdiff
path: root/chef
diff options
context:
space:
mode:
authorGeoff Papilion <papilion@hypergeometric.com>2012-01-03 19:37:03 -0800
committerBryan McLellan <btm@opscode.com>2012-12-13 10:49:07 -0800
commitfa14140a4977d889c0e6490065bd8e2fd687bdd5 (patch)
treef90c3d8b9ff4711ce66768dd0d0a962637e75454 /chef
parentbc9b4f965b0279457d5d95ea05a69689f8270d71 (diff)
downloadchef-fa14140a4977d889c0e6490065bd8e2fd687bdd5.tar.gz
one line fix to http://tickets.opscode.com/browse/CHEF-2812
questionable if this is the right approach.
Diffstat (limited to 'chef')
-rw-r--r--chef/lib/chef/resource.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/lib/chef/resource.rb b/chef/lib/chef/resource.rb
index 810c19cfd0..e90e475c83 100644
--- a/chef/lib/chef/resource.rb
+++ b/chef/lib/chef/resource.rb
@@ -265,7 +265,7 @@ F
prior_resource = run_context.resource_collection.lookup(self.to_s)
Chef::Log.debug("Setting #{self.to_s} to the state of the prior #{self.to_s}")
prior_resource.instance_variables.each do |iv|
- unless iv.to_sym == :@source_line || iv.to_sym == :@action
+ unless iv.to_sym == :@source_line || iv.to_sym == :@action || iv.to_sym == :@not_if || iv.to_sym == :@only_if
self.instance_variable_set(iv, prior_resource.instance_variable_get(iv))
end
end