1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib
Sergio Rubio 8049ee0d0f [openstack|image] Configurable :openstack_endpoint_type
:openstack_endpoint_type is missing as a recognized parameter. This
patch fixes that, and allows the :openstack_endpoint_type to be
configurable instead of hardcoding the value to 'adminURL'

That is, you can create the connection to the service as follows now:

require 'fog'
conn = Fog::Image.new({
  :provider => 'OpenStack',
  :openstack_api_key => ENV['OS_PASSWORD'],
  :openstack_username => ENV["OS_USERNAME"],
  :openstack_auth_url => ENV["OS_AUTH_URL"]
  :openstack_tenant => ENV["OS_TENANT_NAME"],
  :openstack_endpoint_type => 'publicURL', #publicURL, adminURL, internalURL
})

Defaults to adminURL to maintain backwards compatibility.
2012-12-21 18:27:56 +01:00
..
fog [openstack|image] Configurable :openstack_endpoint_type 2012-12-21 18:27:56 +01:00
tasks [openstack] Fix Test 2012-12-05 14:45:37 +08:00
fog.rb [core] Splits Fog::VERSION into own file 2012-11-27 16:30:40 +00:00