diff options
author | John Keiser <john@johnkeiser.com> | 2016-09-16 14:27:27 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2016-09-16 14:27:27 -0700 |
commit | b64b8382a07514e3f0a973937720807a66986807 (patch) | |
tree | 61d15fb1c87d595f48f7c10d101ec976bc931d62 /lib/chef/resource | |
parent | 3682641101e07e71684f126841b8c8fbc0220ee8 (diff) | |
download | chef-b64b8382a07514e3f0a973937720807a66986807.tar.gz |
Make 12.5+ custom resources whyrun safe by default.
(This was always intended to be the case, and it's difficult
to do it yourself. We have been teaching people whyrun-safe
methods to make resources right alongside Custom Resources, as well.)
Diffstat (limited to 'lib/chef/resource')
-rw-r--r-- | lib/chef/resource/action_class.rb | 4 |
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. # |