summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2021-11-03 13:23:56 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2021-11-03 16:51:00 -0700
commitb6910390f8e1fd1f6362cd0559d2c641dd9a4540 (patch)
treeaef4c7c77f22ceb6830d698f6c6aa4b07f281945
parent82c21c7ed130fec1208ee96699725cd729029616 (diff)
downloadchef-update-powershell-binaries.tar.gz
be consistent with -1 valuesupdate-powershell-binaries
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/pwsh.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/pwsh.rb b/lib/chef/pwsh.rb
index fcc91a2421..f33eb26c9c 100644
--- a/lib/chef/pwsh.rb
+++ b/lib/chef/pwsh.rb
@@ -26,14 +26,14 @@ class Chef
# @param script [String] script to run
# @param timeout [Integer, nil] timeout in seconds.
# @return [Object] output
- def initialize(script, timeout: nil)
+ def initialize(script, timeout: -1)
@dll = Pwsh.dll
super
end
protected
- def exec(script, timeout: nil)
+ def exec(script, timeout: -1)
# Note that we need to override the location of the shared dotnet core library
# location. With most .net core applications, you can simply publish them as a
# "self-contained" application allowing consumers of the application to run them