diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2021-11-02 15:35:17 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2021-11-03 16:50:59 -0700 |
commit | c471231140d55ace1a5bf27c9fa9e41f4dd5ec8c (patch) | |
tree | eadfb4db803bdc034bbace2aba132faeb7f18bec | |
parent | 09b77eb5a184d19368174bf601078dbc12d05f48 (diff) | |
download | chef-c471231140d55ace1a5bf27c9fa9e41f4dd5ec8c.tar.gz |
change default timeout to -1
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | lib/chef/mixin/powershell_exec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/mixin/powershell_exec.rb b/lib/chef/mixin/powershell_exec.rb index 9a3d8e4598..75114220cb 100644 --- a/lib/chef/mixin/powershell_exec.rb +++ b/lib/chef/mixin/powershell_exec.rb @@ -106,7 +106,7 @@ class Chef # @param interpreter [Symbol] the interpreter type, `:powershell` or `:pwsh` # @param timeout [Integer, nil] timeout in seconds. # @return [Chef::PowerShell] output - def powershell_exec(script, interpreter = :powershell, timeout: nil) + def powershell_exec(script, interpreter = :powershell, timeout: -1) case interpreter when :powershell Chef::PowerShell.new(script, timeout: timeout) |