Curl statements to include globoff for IPv6 URLs
python-glanceclient displays curl statements for debugging/troubleshooting purposes. For IPv6 URLs, curl requires --globoff to be passed in the arguments. Since glanceclient does not use curl directly, this patch displays the curl commands with globoff option which works for both IPv4 and IPv6 URLs. Fix adapted from python-novaclient Ib7099e8e3bbc15f29bbaa1db37ef21e78a74e7bc Closes-Bug: #1228744 Change-Id: Ie02c4e75ca1ab995102aa55bbff39b2161218b2d
This commit is contained in:
@@ -94,7 +94,7 @@ class HTTPClient(object):
|
||||
return netutils.urlsplit(endpoint)
|
||||
|
||||
def log_curl_request(self, method, url, headers, data, kwargs):
|
||||
curl = ['curl -i -X %s' % method]
|
||||
curl = ['curl -g -i -X %s' % method]
|
||||
|
||||
headers = copy.deepcopy(headers)
|
||||
headers.update(self.session.headers)
|
||||
|
Reference in New Issue
Block a user