diff options
author | Tim Smith <tsmith@chef.io> | 2018-11-01 19:10:36 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-11-01 19:10:36 -0700 |
commit | da6fc84da1c8d6758c7cab82ee08625c58eff79c (patch) | |
tree | d2aa5844544345ebeabbce74a6c164df6f33d067 | |
parent | 67db800c0fdc493490efaf75737850cc23c46744 (diff) | |
download | chef-remove_bogus_check.tar.gz |
Remove the check for nil code property in the script providerremove_bogus_check
new_resource.code comes from the execute resource and it's a required property there. This can never fire.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/provider/script.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/chef/provider/script.rb b/lib/chef/provider/script.rb index 444eac54ac..b54965be45 100644 --- a/lib/chef/provider/script.rb +++ b/lib/chef/provider/script.rb @@ -49,10 +49,6 @@ class Chef def load_current_resource super - # @todo Chef-15: change this to an exception - if code.nil? - logger.warn "#{new_resource}: No code attribute was given, resource does nothing, this behavior is deprecated and will be removed in Chef 15 (April 2019)" - end end def action_run |