summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2021-11-02 15:35:17 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2021-11-03 16:50:59 -0700
commitc471231140d55ace1a5bf27c9fa9e41f4dd5ec8c (patch)
treeeadfb4db803bdc034bbace2aba132faeb7f18bec
parent09b77eb5a184d19368174bf601078dbc12d05f48 (diff)
downloadchef-c471231140d55ace1a5bf27c9fa9e41f4dd5ec8c.tar.gz
change default timeout to -1
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/mixin/powershell_exec.rb2
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)