diff --git a/lib/salt/api/client.rb b/lib/salt/api/client.rb index ed60fa8..cb43226 100644 --- a/lib/salt/api/client.rb +++ b/lib/salt/api/client.rb @@ -8,6 +8,7 @@ def client Net::HTTP.new(hostname, port).tap do |client| client.use_ssl = use_ssl client.open_timeout = timeout + client.read_timeout = read_timeout # TODO: Allow specifying CA and such client.verify_mode = OpenSSL::SSL::VERIFY_NONE end diff --git a/lib/salt/api/configure.rb b/lib/salt/api/configure.rb index 28f5d1d..331f174 100644 --- a/lib/salt/api/configure.rb +++ b/lib/salt/api/configure.rb @@ -6,6 +6,7 @@ module Configure :username, :password, :timeout, + :read_timeout, :eauth, :port, :use_ssl diff --git a/lib/salt/api/version.rb b/lib/salt/api/version.rb index cdee217..b61b9a0 100644 --- a/lib/salt/api/version.rb +++ b/lib/salt/api/version.rb @@ -1,5 +1,5 @@ module Salt module Api - VERSION = "0.1.4" + VERSION = "0.1.6" end end