From 08427f1dec894464d7fe1dcc530dba18ad3d2a99 Mon Sep 17 00:00:00 2001 From: Alex Pop Date: Wed, 26 Oct 2016 17:19:56 +0100 Subject: [PATCH] fix nil timeout and retries Signed-off-by: Alex Pop --- lib/resources/ssl.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/resources/ssl.rb b/lib/resources/ssl.rb index 26722c74b..6b0cc3f3f 100644 --- a/lib/resources/ssl.rb +++ b/lib/resources/ssl.rb @@ -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] }