lib/fog/hp/compute.rb in fog-1.20.0 vs lib/fog/hp/compute.rb in fog-1.21.0

- old
+ new

@@ -1,7 +1,6 @@ require 'fog/hp/core' -require 'fog/compute' module Fog module Compute class HP < Fog::Service @@ -191,11 +190,11 @@ @connection_options = options[:connection_options] || {} ### Set an option to use the style of authentication desired; :v1 or :v2 (default) ### A symbol is required, we should ensure that the value is loaded as a symbol auth_version = options[:hp_auth_version] || :v2 auth_version = auth_version.to_s.downcase.to_sym - + ### Pass the service name for compute via the options hash options[:hp_service_type] ||= "Compute" @hp_tenant_id = options[:hp_tenant_id] ### Make the authentication call @@ -219,10 +218,10 @@ @path = uri.path @persistent = options[:persistent] || false @port = uri.port @scheme = uri.scheme - @connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options) + @connection = Fog::XML::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options) end def reload @connection.reset end