diff options
author | Geoff Papilion <papilion@hypergeometric.com> | 2012-01-03 19:37:03 -0800 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2012-12-13 10:49:07 -0800 |
commit | fa14140a4977d889c0e6490065bd8e2fd687bdd5 (patch) | |
tree | f90c3d8b9ff4711ce66768dd0d0a962637e75454 | |
parent | bc9b4f965b0279457d5d95ea05a69689f8270d71 (diff) | |
download | chef-fa14140a4977d889c0e6490065bd8e2fd687bdd5.tar.gz |
one line fix to http://tickets.opscode.com/browse/CHEF-2812
questionable if this is the right approach.
-rw-r--r-- | chef/lib/chef/resource.rb | 2 |
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 |