mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Hp provider: ensures that hp_auth_version is loaded as symbol
This commit is contained in:
parent
ddf44fabcc
commit
aba9003c3f
4 changed files with 8 additions and 4 deletions
|
@ -104,7 +104,8 @@ module Fog
|
||||||
@hp_auth_uri = options[:hp_auth_uri]
|
@hp_auth_uri = options[:hp_auth_uri]
|
||||||
@connection_options = options[:connection_options] || {}
|
@connection_options = options[:connection_options] || {}
|
||||||
### Set an option to use the style of authentication desired; :v1 or :v2 (default)
|
### Set an option to use the style of authentication desired; :v1 or :v2 (default)
|
||||||
auth_version = options[:hp_auth_version] || :v2
|
### A symbol is required, we should ensure that the value is loaded as a symbol
|
||||||
|
auth_version = options[:hp_auth_version].to_sym || :v2
|
||||||
### Pass the service name for object storage to the authentication call
|
### Pass the service name for object storage to the authentication call
|
||||||
options[:hp_service_type] = "Block Storage"
|
options[:hp_service_type] = "Block Storage"
|
||||||
@hp_tenant_id = options[:hp_tenant_id]
|
@hp_tenant_id = options[:hp_tenant_id]
|
||||||
|
|
|
@ -79,7 +79,8 @@ module Fog
|
||||||
@hp_secret_key = options[:hp_secret_key]
|
@hp_secret_key = options[:hp_secret_key]
|
||||||
@connection_options = options[:connection_options] || {}
|
@connection_options = options[:connection_options] || {}
|
||||||
### Set an option to use the style of authentication desired; :v1 or :v2 (default)
|
### Set an option to use the style of authentication desired; :v1 or :v2 (default)
|
||||||
auth_version = options[:hp_auth_version] || :v2
|
### A symbol is required, we should ensure that the value is loaded as a symbol
|
||||||
|
auth_version = options[:hp_auth_version].to_sym || :v2
|
||||||
### Pass the service name for object storage to the authentication call
|
### Pass the service name for object storage to the authentication call
|
||||||
options[:hp_service_type] = "CDN"
|
options[:hp_service_type] = "CDN"
|
||||||
@hp_tenant_id = options[:hp_tenant_id]
|
@hp_tenant_id = options[:hp_tenant_id]
|
||||||
|
|
|
@ -188,7 +188,8 @@ module Fog
|
||||||
@hp_secret_key = options[:hp_secret_key]
|
@hp_secret_key = options[:hp_secret_key]
|
||||||
@connection_options = options[:connection_options] || {}
|
@connection_options = options[:connection_options] || {}
|
||||||
### Set an option to use the style of authentication desired; :v1 or :v2 (default)
|
### Set an option to use the style of authentication desired; :v1 or :v2 (default)
|
||||||
auth_version = options[:hp_auth_version] || :v2
|
### A symbol is required, we should ensure that the value is loaded as a symbol
|
||||||
|
auth_version = options[:hp_auth_version].to_sym || :v2
|
||||||
### Pass the service name for compute via the options hash
|
### 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]
|
@hp_tenant_id = options[:hp_tenant_id]
|
||||||
|
|
|
@ -263,7 +263,8 @@ module Fog
|
||||||
@hp_cdn_ssl = options[:hp_cdn_ssl]
|
@hp_cdn_ssl = options[:hp_cdn_ssl]
|
||||||
@connection_options = options[:connection_options] || {}
|
@connection_options = options[:connection_options] || {}
|
||||||
### Set an option to use the style of authentication desired; :v1 or :v2 (default)
|
### Set an option to use the style of authentication desired; :v1 or :v2 (default)
|
||||||
auth_version = options[:hp_auth_version] || :v2
|
### A symbol is required, we should ensure that the value is loaded as a symbol
|
||||||
|
auth_version = options[:hp_auth_version].to_sym || :v2
|
||||||
### Pass the service name for object storage to the authentication call
|
### Pass the service name for object storage to the authentication call
|
||||||
options[:hp_service_type] = "Object Storage"
|
options[:hp_service_type] = "Object Storage"
|
||||||
@hp_tenant_id = options[:hp_tenant_id]
|
@hp_tenant_id = options[:hp_tenant_id]
|
||||||
|
|
Loading…
Reference in a new issue