Ensure no double slash in get token URL
Before appending a slash to an URL, we should make sure that the url doesn't already have one at the end. Change-Id: Iff864d9b49cf3e3138f602a2c6615ed742f35698 Closes-Bug: 1337880
This commit is contained in:
@@ -43,7 +43,7 @@ class Auth(base.BaseIdentityPlugin):
|
||||
|
||||
def get_auth_ref(self, session, **kwargs):
|
||||
headers = {'Accept': 'application/json'}
|
||||
url = self.auth_url + '/tokens'
|
||||
url = self.auth_url.rstrip('/') + '/tokens'
|
||||
params = {'auth': self.get_auth_data(headers)}
|
||||
|
||||
if self.tenant_id:
|
||||
|
Reference in New Issue
Block a user