summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Mick <dan.mick@inktank.com>2013-07-25 17:29:22 -0700
committerDan Mick <dan.mick@inktank.com>2013-07-25 18:06:41 -0700
commit8b3d7a1b5ef8d6e8ae1a1f6cfb99463afd5e0bb2 (patch)
tree8dab0245ae124839b5a0a446868229be956b8bda
parentdfabc61c2cf8cba246f431ee1df86c850c3e7e6e (diff)
downloadceph-8b3d7a1b5ef8d6e8ae1a1f6cfb99463afd5e0bb2.tar.gz
ceph_rest_api.py: actually remove the trailing / on baseurl
Lurking bug since version 1... Signed-off-by: Dan Mick <dan.mick@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
-rwxr-xr-xsrc/pybind/ceph_rest_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pybind/ceph_rest_api.py b/src/pybind/ceph_rest_api.py
index a379e352b1f..6165d31f9b9 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]