Remove trailing / from endpoint
Change-Id: I9674daf7c504befc6475aa9cf4b9836620de3709
This commit is contained in:
parent
bab1b7027b
commit
8e0562464b
@ -34,6 +34,8 @@ def monascaclient(request, password=None):
|
||||
insecure = getattr(settings, 'OPENSTACK_SSL_NO_VERIFY', False)
|
||||
cacert = getattr(settings, 'OPENSTACK_SSL_CACERT', None)
|
||||
endpoint = base.url_for(request, 'monitoring')
|
||||
if endpoint.endswith('/'):
|
||||
endpoint = endpoint[:-1]
|
||||
LOG.debug('monascaclient connection created using token "%s" , url "%s"' %
|
||||
(request.user.token.id, endpoint))
|
||||
kwargs = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user