summaryrefslogtreecommitdiff
path: root/lib/chef/provider/powershell_script.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-05-12 15:59:42 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-12 15:59:42 -0700
commit227e07e7b5973b03b0583a989bec525aa6430a8b (patch)
tree864fcd121fbf1379bce02b15aa64abd59f412a86 /lib/chef/provider/powershell_script.rb
parent3584adcbfea1896ad72b03a7a60a70666873bd35 (diff)
downloadchef-deprecation_warnings.tar.gz
Avoid ruby deprecation warnings in cab_package and powershell_scriptdeprecation_warnings
Simple fix to avoid these with shell_out Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/provider/powershell_script.rb')
-rw-r--r--lib/chef/provider/powershell_script.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/powershell_script.rb b/lib/chef/provider/powershell_script.rb
index 6900ba18b6..5210b65d48 100644
--- a/lib/chef/provider/powershell_script.rb
+++ b/lib/chef/provider/powershell_script.rb
@@ -94,7 +94,7 @@ class Chef
# means a non-zero return and thus a syntactically invalid script.
with_os_architecture(node, architecture: new_resource.architecture) do
- shell_out!(validation_command, { returns: [0] })
+ shell_out!(validation_command, returns: [0])
end
end
end