summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-11-01 19:10:36 -0700
committerTim Smith <tsmith@chef.io>2018-11-01 19:10:36 -0700
commitda6fc84da1c8d6758c7cab82ee08625c58eff79c (patch)
treed2aa5844544345ebeabbce74a6c164df6f33d067
parent67db800c0fdc493490efaf75737850cc23c46744 (diff)
downloadchef-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.rb4
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