summaryrefslogtreecommitdiff
path: root/heatclient
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-07-05 05:45:19 +0000
committerGerrit Code Review <review@openstack.org>2018-07-05 05:45:19 +0000
commit6ddca4e3c352eb400a1aa5594ee7a52ee69c33b4 (patch)
treef20e122d847cd9e061322339986d625690c926e2 /heatclient
parent56e27f96935ffd118a93d76bdce7a3a41458b61a (diff)
parent6a27997abb1944f19feedf52b9f1415c15157861 (diff)
downloadpython-heatclient-6ddca4e3c352eb400a1aa5594ee7a52ee69c33b4.tar.gz
Merge "Fix log_http_request function in http module"
Diffstat (limited to 'heatclient')
-rw-r--r--heatclient/common/http.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/heatclient/common/http.py b/heatclient/common/http.py
index 4b765df..bb2f0c1 100644
--- a/heatclient/common/http.py
+++ b/heatclient/common/http.py
@@ -137,7 +137,10 @@ class HTTPClient(object):
if 'data' in kwargs:
curl.append('-d \'%s\'' % kwargs['data'])
- curl.append('%s%s' % (self.endpoint, url))
+ if not parse.urlparse(url).netloc:
+ url = self.endpoint + url
+
+ curl.append(url)
LOG.debug(' '.join(curl))
@staticmethod