lib/rbovirt.rb in rbovirt-0.1.3 vs lib/rbovirt.rb in rbovirt-0.1.4
- old
+ new
@@ -170,10 +170,10 @@
options = {}
options[:verify_ssl] = ca_no_verify ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER
options[:ssl_cert_store] = ca_cert_store if ca_cert_store
options[:ssl_ca_file] = ca_cert_file if ca_cert_file
end
- options[:timeout] = ENV['RBOVIRT_REST_TIMEOUT'] if ENV['RBOVIRT_REST_TIMEOUT']
+ options[:timeout] = ENV['RBOVIRT_REST_TIMEOUT'].to_i if ENV['RBOVIRT_REST_TIMEOUT']
RestClient::Resource.new(@api_entrypoint, options)[suburl]
end
def filter_header
filtered_api ? { :filter => "true" } : {}