diff options
Diffstat (limited to 'heatclient/common/http.py')
-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 |