gnocchi: remove possible ending / in URL

If the URL ends up with a /, then URL are built with 2 /
e.g. POST //v1/foobar and that does not work.

Change-Id: I98e9a0e85e9dd6ae022bbc0543244e533b1307f7
This commit is contained in:
Julien Danjou 2015-10-14 16:33:00 +02:00
parent 130b8519df
commit 0e776f8f09

View File

@ -216,7 +216,7 @@ class GnocchiSession(object):
class Client(object):
def __init__(self, url):
self._gnocchi_url = url
self._gnocchi_url = url.rstrip("/")
self._ks_client = keystone_client.get_client()
self._session = GnocchiSession()