mirror of
https://opendev.org/openstack/python-heatclient.git
synced 2026-01-16 23:00:35 +00:00
Fix log_http_request function in http module
Change-Id: I043f90541c8d2d604f3edb4e7ea082ec8adb4b25 Closes-Bug: #1746669
This commit is contained in:
parent
2ce6aa19a3
commit
6a27997abb
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue