summaryrefslogtreecommitdiff
path: root/tempest_lib/services/identity/v2/token_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'tempest_lib/services/identity/v2/token_client.py')
-rw-r--r--tempest_lib/services/identity/v2/token_client.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tempest_lib/services/identity/v2/token_client.py b/tempest_lib/services/identity/v2/token_client.py
index 621f8b3..10c437c 100644
--- a/tempest_lib/services/identity/v2/token_client.py
+++ b/tempest_lib/services/identity/v2/token_client.py
@@ -28,6 +28,9 @@ class TokenClient(rest_client.RestClient):
None, None, None, disable_ssl_certificate_validation=dscv,
ca_certs=ca_certs, trace_requests=trace_requests)
+ if auth_url is None:
+ raise exceptions.IdentityError("Couldn't determine auth_url")
+
# Normalize URI to ensure /tokens is in it.
if 'tokens' not in auth_url:
auth_url = auth_url.rstrip('/') + '/tokens'