mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Use default command timeout value if timeout is 0
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
499bc99c71
commit
cbf57c3905
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ module Inspec::Resources
|
|||
# Can access this via Inspec::InspecCLI.commands["exec"].options[:command_timeout].default,
|
||||
# but that may not be loaded for kitchen-inspec and other pure gem consumers
|
||||
default_cli_timeout = 3600
|
||||
cli_timeout = default_cli_timeout if cli_timeout == 0 # Under test-kitchen we get a 0 timeout, which can't be a resonable value
|
||||
if cli_timeout != default_cli_timeout
|
||||
@timeout = cli_timeout
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue