From: Dan Mick Date: Fri, 26 Jul 2013 00:29:22 +0000 (-0700) Subject: ceph_rest_api.py: actually remove the trailing / on baseurl X-Git-Tag: v0.67-rc3~52 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8b3d7a1b5ef8d6e8ae1a1f6cfb99463afd5e0bb2;p=ceph.git ceph_rest_api.py: actually remove the trailing / on baseurl Lurking bug since version 1... Signed-off-by: Dan Mick Reviewed-by: Sage Weil --- diff --git a/src/pybind/ceph_rest_api.py b/src/pybind/ceph_rest_api.py index a379e352b1ff..6165d31f9b9b 100755 --- a/src/pybind/ceph_rest_api.py +++ b/src/pybind/ceph_rest_api.py @@ -130,7 +130,7 @@ def api_setup(): glob.baseurl = get_conf(cfg, clientname, 'base_url') or DEFAULT_BASEURL if glob.baseurl.endswith('/'): - glob.baseurl + glob.baseurl = glob.baseurl[:-1] addr = get_conf(cfg, clientname, 'public_addr') or DEFAULT_ADDR addrport = addr.rsplit(':', 1) addr = addrport[0]