Remove trailing / from endpoint

Change-Id: I9674daf7c504befc6475aa9cf4b9836620de3709
This commit is contained in:
Rob Raymond 2014-08-27 08:01:54 -06:00
parent bab1b7027b
commit 8e0562464b

View File

@ -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 = {