mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1816 from ceraslabs/region
Added support for OpenStack region for network service
This commit is contained in:
commit
11fb98a53b
1 changed files with 6 additions and 3 deletions
|
@ -9,7 +9,7 @@ module Fog
|
||||||
recognizes :openstack_auth_token, :openstack_management_url, :persistent,
|
recognizes :openstack_auth_token, :openstack_management_url, :persistent,
|
||||||
:openstack_service_type, :openstack_service_name, :openstack_tenant,
|
:openstack_service_type, :openstack_service_name, :openstack_tenant,
|
||||||
:openstack_api_key, :openstack_username, :openstack_endpoint_type,
|
:openstack_api_key, :openstack_username, :openstack_endpoint_type,
|
||||||
:current_user, :current_tenant
|
:current_user, :current_tenant, :openstack_region
|
||||||
|
|
||||||
## MODELS
|
## MODELS
|
||||||
#
|
#
|
||||||
|
@ -134,6 +134,7 @@ module Fog
|
||||||
@openstack_service_type = options[:openstack_service_type] || ['network']
|
@openstack_service_type = options[:openstack_service_type] || ['network']
|
||||||
@openstack_service_name = options[:openstack_service_name]
|
@openstack_service_name = options[:openstack_service_name]
|
||||||
@openstack_endpoint_type = options[:openstack_endpoint_type] || 'adminURL'
|
@openstack_endpoint_type = options[:openstack_endpoint_type] || 'adminURL'
|
||||||
|
@openstack_region = options[:openstack_region]
|
||||||
|
|
||||||
@connection_options = options[:connection_options] || {}
|
@connection_options = options[:connection_options] || {}
|
||||||
|
|
||||||
|
@ -152,7 +153,8 @@ module Fog
|
||||||
:openstack_auth_token => @auth_token,
|
:openstack_auth_token => @auth_token,
|
||||||
:openstack_management_url => @openstack_management_url,
|
:openstack_management_url => @openstack_management_url,
|
||||||
:current_user => @current_user,
|
:current_user => @current_user,
|
||||||
:current_tenant => @current_tenant }
|
:current_tenant => @current_tenant,
|
||||||
|
:openstack_region => @openstack_region }
|
||||||
end
|
end
|
||||||
|
|
||||||
def reload
|
def reload
|
||||||
|
@ -204,7 +206,8 @@ module Fog
|
||||||
:openstack_auth_token => @openstack_auth_token,
|
:openstack_auth_token => @openstack_auth_token,
|
||||||
:openstack_service_type => @openstack_service_type,
|
:openstack_service_type => @openstack_service_type,
|
||||||
:openstack_service_name => @openstack_service_name,
|
:openstack_service_name => @openstack_service_name,
|
||||||
:openstack_endpoint_type => @openstack_endpoint_type
|
:openstack_endpoint_type => @openstack_endpoint_type,
|
||||||
|
:openstack_region => @openstack_region
|
||||||
}
|
}
|
||||||
|
|
||||||
credentials = Fog::OpenStack.authenticate_v2(options, @connection_options)
|
credentials = Fog::OpenStack.authenticate_v2(options, @connection_options)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue