summaryrefslogtreecommitdiff
path: root/ceilometerclient
diff options
context:
space:
mode:
authorls1175 <liusheng@huawei.com>2013-12-20 10:40:22 +0800
committerls1175 <liusheng@huawei.com>2013-12-20 10:58:49 +0800
commit994ceae9a90c9fd87f3dc400b83df82503c5c5a7 (patch)
tree7875f074ca6a8658043539316a4b239520cca9dd /ceilometerclient
parentd663570b775bf429c9f6b183d1e7809e4d4a1b2d (diff)
downloadpython-ceilometerclient-994ceae9a90c9fd87f3dc400b83df82503c5c5a7.tar.gz
Fix the ceilometerlient log curl request incorrectly
Have installed ceilometer on Ubuntu 12.04 (LTS) and added the keystone endpoint with the url (publicurl,internalurl and adminurl)like:http://192.168.83.7:8777/refer to the "OpenStack Installation Guide for Ubuntu 12.04 (LTS)". When using "ceilometer --debug meter-list",the ceilometerclient log request url with a double slash after 8777. Change-Id: I467704b1fe1d38fe0f0e928bd6f6efe3d8925845 Closes-bug: #1262498
Diffstat (limited to 'ceilometerclient')
-rw-r--r--ceilometerclient/common/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ceilometerclient/common/http.py b/ceilometerclient/common/http.py
index 23353e0..d57bf0e 100644
--- a/ceilometerclient/common/http.py
+++ b/ceilometerclient/common/http.py
@@ -107,7 +107,7 @@ class HTTPClient(object):
if 'body' in kwargs:
curl.append('-d \'%s\'' % kwargs['body'])
- curl.append('%s%s' % (self.endpoint, url))
+ curl.append('%s/%s' % (self.endpoint.rstrip('/'), url.lstrip('/')))
LOG.debug(' '.join(curl))
@staticmethod