From 465c5cef8d23dcd5400fdfb1aae6d7155c0d44a6 Mon Sep 17 00:00:00 2001 From: sridhargaddam Date: Fri, 21 Nov 2014 13:04:29 +0000 Subject: [PATCH] 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 --- glanceclient/common/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glanceclient/common/http.py b/glanceclient/common/http.py index 8a1f1721..2bdeedfd 100644 --- a/glanceclient/common/http.py +++ b/glanceclient/common/http.py @@ -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)