summaryrefslogtreecommitdiff
path: root/lib/chef/mixin/why_run.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/mixin/why_run.rb')
-rw-r--r--lib/chef/mixin/why_run.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/mixin/why_run.rb b/lib/chef/mixin/why_run.rb
index d650e3332f..d3acea5490 100644
--- a/lib/chef/mixin/why_run.rb
+++ b/lib/chef/mixin/why_run.rb
@@ -48,7 +48,7 @@ class Chef
# block/proc that implements the action.
def add_action(descriptions, &block)
@actions << [descriptions, block]
- if !Chef::Config[:why_run]
+ if (@resource.respond_to?(:is_guard_interpreter) && @resource.is_guard_interpreter) || !Chef::Config[:why_run]
block.call
end
events.resource_update_applied(@resource, @action, descriptions)