lib/fog/hp/compute.rb in fog-1.16.0 vs lib/fog/hp/compute.rb in fog-1.17.0
- old
+ new
@@ -4,11 +4,11 @@
module Fog
module Compute
class HP < Fog::Service
requires :hp_secret_key, :hp_tenant_id, :hp_avl_zone
- recognizes :hp_auth_uri
+ recognizes :hp_auth_uri, :hp_service_type
recognizes :hp_use_upass_auth_style, :hp_auth_version, :user_agent
recognizes :persistent, :connection_options
recognizes :hp_access_key, :hp_account_id # :hp_account_id is deprecated use hp_access_key instead
secrets :hp_secret_key
@@ -191,10 +191,10 @@
### 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"
+ options[:hp_service_type] ||= "Compute"
@hp_tenant_id = options[:hp_tenant_id]
### Make the authentication call
if (auth_version == :v2)
# Call the control services authentication