Merge "Always allow overriding the endpoint"

This commit is contained in:
Jenkins
2013-05-25 12:00:50 +00:00
committed by Gerrit Code Review

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