summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorXabier de Zuazo <xabier@zuazo.org>2013-01-10 14:24:07 +0100
committerBryan McLellan <btm@opscode.com>2013-06-19 14:18:42 -0700
commit91f9b6aef4d6ff0454ba92fe163aab4921eb83b5 (patch)
tree8f46f815f1d30dab212c21018a6ec227a8652ae6 /lib
parentef6e30b8326c9838a2fb8ed3325bd07a018932e9 (diff)
downloadchef-91f9b6aef4d6ff0454ba92fe163aab4921eb83b5.tar.gz
[CHEF-972] replaced only_if Conditional by a not_if Conditional
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/resource.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb
index ca4e177fc0..264840a357 100644
--- a/lib/chef/resource.rb
+++ b/lib/chef/resource.rb
@@ -674,7 +674,7 @@ F
# only_if commands/blocks being evaluated.
def should_skip?(action)
if (action == :nothing)
- events.resource_skipped(self, action, Conditional.only_if('action == :nothing'))
+ events.resource_skipped(self, action, Conditional.not_if('action == :nothing'))
Chef::Log.debug("Skipping #{self} due to :nothing action")
return true
end