Always allow overriding the endpoint

Change-Id: Iff4d152e8e59f895a42adf6927e559ca73472888
This commit is contained in:
Kiall Mac Innes
2013-05-25 12:57:52 +01:00
parent e853efb11d
commit 02835b0856

View File

@@ -41,7 +41,10 @@ class Client(object):
auth = KeystoneAuth(auth_url, username, password, tenant_id,
tenant_name, token, service_type,
endpoint_type, sudo_tenant_id)
self.endpoint = auth.get_url()
if endpoint:
self.endpoint = endpoint
else:
self.endpoint = auth.get_url()
elif endpoint:
auth = None
self.endpoint = endpoint