From 26f64bf6b876a13100ea0a943008406cd5bd10c5 Mon Sep 17 00:00:00 2001 From: rishichawda Date: Thu, 30 Sep 2021 14:29:26 +0000 Subject: fix args error on powershell class Signed-off-by: rishichawda --- lib/chef/powershell.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/chef/powershell.rb') diff --git a/lib/chef/powershell.rb b/lib/chef/powershell.rb index 3552c6b107..4be80b56b7 100644 --- a/lib/chef/powershell.rb +++ b/lib/chef/powershell.rb @@ -33,6 +33,7 @@ class Chef # Requires: .NET Framework 4.0 or higher on the target machine. # # @param script [String] script to run + # @param timeout [Integer, nil] timeout in seconds. # @return [Object] output def initialize(script, timeout: nil) # This Powershell DLL source lives here: https://github.com/chef/chef-powershell-shim @@ -41,7 +42,7 @@ class Chef # the built packages and copy the binaries to distro/ruby_bin_folder. Bundle install # ensures that the correct architecture binaries are installed into the path. @dll ||= "Chef.PowerShell.Wrapper.dll" - exec(script, timeout) + exec(script, timeout: timeout) end # -- cgit v1.2.1