Set OpenStack auth URL without force
@@ -148,11 +148,12 @@ class OpenStackBaseConnection(ConnectionUserAndKey):
ex_force_service_type=None,
ex_force_service_name=None,
ex_force_service_region=None,
- retry_delay=None, backoff=None):
+ retry_delay=None, backoff=None, ex_auth_url=None):
super(OpenStackBaseConnection, self).__init__(
user_id, key, secure=secure, timeout=timeout,
retry_delay=retry_delay, backoff=backoff, proxy_url=proxy_url)
+ self.auth_url = ex_auth_url
if ex_force_auth_version:
self._auth_version = ex_force_auth_version
@@ -420,7 +421,9 @@ class OpenStackDriverMixin(object):
ex_tenant_name=None,
ex_force_service_type=None,
ex_force_service_name=None,
- ex_force_service_region=None, *args, **kwargs):
+ ex_force_service_region=None,
+ ex_auth_url=None, *args, **kwargs):
+ self._ex_auth_url = ex_auth_url
self._ex_force_base_url = ex_force_base_url
self._ex_force_auth_url = ex_force_auth_url
self._ex_force_auth_version = ex_force_auth_version
@@ -458,4 +461,6 @@ class OpenStackDriverMixin(object):
rv['ex_force_service_name'] = self._ex_force_service_name
if self._ex_force_service_region:
rv['ex_force_service_region'] = self._ex_force_service_region
+ if self._ex_auth_url:
+ rv['ex_auth_url'] = self._ex_auth_url
return rv
