diff options
author | Zuul <zuul@review.openstack.org> | 2018-07-05 05:45:19 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-07-05 05:45:19 +0000 |
commit | 6ddca4e3c352eb400a1aa5594ee7a52ee69c33b4 (patch) | |
tree | f20e122d847cd9e061322339986d625690c926e2 /heatclient | |
parent | 56e27f96935ffd118a93d76bdce7a3a41458b61a (diff) | |
parent | 6a27997abb1944f19feedf52b9f1415c15157861 (diff) | |
download | python-heatclient-6ddca4e3c352eb400a1aa5594ee7a52ee69c33b4.tar.gz |
Merge "Fix log_http_request function in http module"
Diffstat (limited to 'heatclient')
-rw-r--r-- | heatclient/common/http.py | 5 |
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 |