diff --git a/lib/rbovirt.rb b/lib/rbovirt.rb
index <HASH>..<HASH> 100644
--- a/lib/rbovirt.rb
+++ b/lib/rbovirt.rb
@@ -172,7 +172,7 @@ module OVIRT
         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
RBOVIRT_REST_TIMEOUT parse as integer

When using RBOVIRT_REST_TIMEOUT from passenger environment variable, the value is parsed as String and a exception is thrown.

"can't convert String into time interval"

With this small change the value is sent to rest_client as an Integer type and does not exit.