Fix the info command with --insecure
We forgot to propagate options into http_connection() for the info aka capabilities command. Fix is to use the proper helper. Fixes bug: 1381866 Change-Id: I9515203c969a1bba38dd909412355080383905f9
This commit is contained in:
parent
83ca0b825d
commit
b27ca7c0c0
@ -1208,8 +1208,8 @@ class Connection(object):
|
|||||||
cacert=self.cacert,
|
cacert=self.cacert,
|
||||||
insecure=self.insecure)
|
insecure=self.insecure)
|
||||||
|
|
||||||
def http_connection(self):
|
def http_connection(self, url=None):
|
||||||
return http_connection(self.url,
|
return http_connection(url if url else self.url,
|
||||||
cacert=self.cacert,
|
cacert=self.cacert,
|
||||||
insecure=self.insecure,
|
insecure=self.insecure,
|
||||||
ssl_compression=self.ssl_compression)
|
ssl_compression=self.ssl_compression)
|
||||||
@ -1386,5 +1386,5 @@ class Connection(object):
|
|||||||
scheme = urlparse(url).scheme
|
scheme = urlparse(url).scheme
|
||||||
netloc = urlparse(url).netloc
|
netloc = urlparse(url).netloc
|
||||||
url = scheme + '://' + netloc + '/info'
|
url = scheme + '://' + netloc + '/info'
|
||||||
http_conn = http_connection(url, ssl_compression=self.ssl_compression)
|
http_conn = self.http_connection(url)
|
||||||
return get_capabilities(http_conn)
|
return get_capabilities(http_conn)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user