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
commit e8f7306112
1 changed files with 4 additions and 1 deletions

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