summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2016-09-16 15:14:19 -0700
committerGitHub <noreply@github.com>2016-09-16 15:14:19 -0700
commita608666215bd1d0e75b6aef63fb9bf776d8837a1 (patch)
treecc420cbaf571929b3824b43cb21ec37d4dd3a340 /lib
parent1b31450cf589f5557bcd08433507754d21255955 (diff)
parentb64b8382a07514e3f0a973937720807a66986807 (diff)
downloadchef-a608666215bd1d0e75b6aef63fb9bf776d8837a1.tar.gz
Merge pull request #5339 from chef/jk/custom-resources-whyrun
Make 12.5+ custom resources whyrun-safe by default
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/resource/action_class.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/resource/action_class.rb b/lib/chef/resource/action_class.rb
index 89b23499d0..98b4d87ef1 100644
--- a/lib/chef/resource/action_class.rb
+++ b/lib/chef/resource/action_class.rb
@@ -28,6 +28,10 @@ class Chef
"#{new_resource || "<no resource>"} action #{action ? action.inspect : "<no action>"}"
end
+ def whyrun_supported?
+ true
+ end
+
#
# If load_current_value! is defined on the resource, use that.
#