summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--designateclient/auth.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/designateclient/auth.py b/designateclient/auth.py
index 8f1e1e2..b3892e4 100644
--- a/designateclient/auth.py
+++ b/designateclient/auth.py
@@ -85,7 +85,10 @@ class KeystoneAuth(AuthBase):
# NOTE(kiall): The Version 1 API is the only API that has ever included
# the version number in the endpoint. Thus, it's safe to
# simply remove it if present.
- return url.rstrip('/').rstrip('v1').rstrip('/')
+ url = url.rstrip('/')
+ if url.endswith('/v1'):
+ url = url[:-3]
+ return url
def refresh_auth(self):
ks = self.get_ksclient()