mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
fix nil timeout and retries
Signed-off-by: Alex Pop <apop@chef.io>
This commit is contained in:
parent
0a042eb360
commit
08427f1dec
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ class SSL < Inspec.resource(1)
|
|||
'tls1.2',
|
||||
].freeze
|
||||
|
||||
attr_reader :host, :port
|
||||
attr_reader :host, :port, :timeout, :retries
|
||||
|
||||
def initialize(opts = {})
|
||||
@host = opts[:host]
|
||||
|
@ -71,7 +71,7 @@ class SSL < Inspec.resource(1)
|
|||
res = Parallel.map(groups, in_threads: 8) do |proto, e|
|
||||
[proto, SSLShake.hello(x.resource.host, port: x.resource.port,
|
||||
protocol: proto, ciphers: e.map(&:cipher),
|
||||
timeout: @timeout, retries: @retries)]
|
||||
timeout: x.resource.timeout, retries: x.resource.retries)]
|
||||
end
|
||||
Hash[res]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue