summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasu1105 <vasundhara.jagdale@msystechnologies.com>2019-01-29 15:10:42 +0530
committerVasu1105 <vasundhara.jagdale@msystechnologies.com>2019-01-30 12:50:45 +0530
commitbd0b646a45b5f3c674fa375200036cc00d38bb62 (patch)
tree66ac1b76722ca9c229a04a0a5979f724d6b56a22
parent18577a55a5b82e756beb97291e666301e89ce7a5 (diff)
downloadchef-bd0b646a45b5f3c674fa375200036cc00d38bb62.tar.gz
Fixed failing spec need to call super before as to set the command to nil for script resource
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
-rw-r--r--lib/chef/resource/script.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/script.rb b/lib/chef/resource/script.rb
index ac3af619e5..0d7e6a10d5 100644
--- a/lib/chef/resource/script.rb
+++ b/lib/chef/resource/script.rb
@@ -39,10 +39,10 @@ class Chef
# FIXME: remove this and use an execute sub-resource instead of inheriting from Execute
def command(arg = nil)
+ super
unless arg.nil?
raise Chef::Exceptions::Script, "Do not use the command property on a #{resource_name} resource, use the 'code' property instead."
end
- super
end
property :code, String, required: true