diff --git a/lib/fog/hp/block_storage.rb b/lib/fog/hp/block_storage.rb index 2413784c7..00f3605a5 100644 --- a/lib/fog/hp/block_storage.rb +++ b/lib/fog/hp/block_storage.rb @@ -105,7 +105,9 @@ module Fog @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].to_sym || :v2 + auth_version = options[:hp_auth_version] || :v2 + auth_version = auth_version.to_s.downcase.to_sym + ### Pass the service name for object storage to the authentication call options[:hp_service_type] = "Block Storage" @hp_tenant_id = options[:hp_tenant_id] diff --git a/lib/fog/hp/cdn.rb b/lib/fog/hp/cdn.rb index 4b4552b92..323b6ff44 100644 --- a/lib/fog/hp/cdn.rb +++ b/lib/fog/hp/cdn.rb @@ -80,7 +80,9 @@ module Fog @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].to_sym || :v2 + auth_version = options[:hp_auth_version] || :v2 + auth_version = auth_version.to_s.downcase.to_sym + ### Pass the service name for object storage to the authentication call options[:hp_service_type] = "CDN" @hp_tenant_id = options[:hp_tenant_id] diff --git a/lib/fog/hp/compute.rb b/lib/fog/hp/compute.rb index d0d4359d6..67b92bde8 100644 --- a/lib/fog/hp/compute.rb +++ b/lib/fog/hp/compute.rb @@ -189,7 +189,9 @@ module Fog @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].to_sym || :v2 + 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] diff --git a/lib/fog/hp/storage.rb b/lib/fog/hp/storage.rb index 2beaff3d7..6d2bdd08f 100644 --- a/lib/fog/hp/storage.rb +++ b/lib/fog/hp/storage.rb @@ -264,7 +264,9 @@ module Fog @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].to_sym || :v2 + auth_version = options[:hp_auth_version] || :v2 + auth_version = auth_version.to_s.downcase.to_sym + ### Pass the service name for object storage to the authentication call options[:hp_service_type] = "Object Storage" @hp_tenant_id = options[:hp_tenant_id]