Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout default of '0' breaks powershell #31

Open
akomakom opened this issue Apr 12, 2021 · 0 comments
Open

Timeout default of '0' breaks powershell #31

akomakom opened this issue Apr 12, 2021 · 0 comments

Comments

@akomakom
Copy link

This is either a puppet-sys issue or a powershell provider issue, unclear:

with the recent powershell module fix to support the timeout parameter of exec, execution of sys::fetch fails with the default timeout of '0':

Debug: /Stage[main]/Windows::Nssm/Sys::Fetch[download-nssm]/Exec[fetch-download-nssm]/creates: Checking that 'creates' path 'C:\ProgramData\installers\nssm-2.24.zip' exists
Error: Failure waiting for PowerShell process 6044 to start pipe server
Error: /Stage[main]/Windows::Nssm/Sys::Fetch[download-nssm]/Exec[fetch-download-nssm]/returns: change from 'notrun' to ['0'] failed: Failure waiting for PowerShell process 6044 to start pipe server (corrective)

0 should be unlimited, but, since it is a string, powershell provider interprets it as a non-false value (my guess). When overriden like this, everything works:

Sys::Fetch{
  timeout => 120, # a smaller number also works
}
# 0 doesn't seem to work though, unclear why.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant