Merge "client HTTPClient __init__ fails if auth_url None"
This commit is contained in:
commit
3398e424bf
cinderclient
@ -137,7 +137,7 @@ class HTTPClient(object):
|
||||
if not auth_url:
|
||||
raise exceptions.EndpointNotFound()
|
||||
|
||||
self.auth_url = auth_url.rstrip('/')
|
||||
self.auth_url = auth_url.rstrip('/') if auth_url else None
|
||||
self.version = 'v1'
|
||||
self.region_name = region_name
|
||||
self.endpoint_type = endpoint_type
|
||||
|
@ -209,6 +209,10 @@ class ClientTest(utils.TestCase):
|
||||
test_get_call()
|
||||
self.assertEqual([], self.requests)
|
||||
|
||||
def test_get_no_auth_url(self):
|
||||
client.HTTPClient("username", "password",
|
||||
"project_id", retries=0)
|
||||
|
||||
def test_post(self):
|
||||
cl = get_authed_client()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user