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:
Pete Zaitcev 2014-10-17 13:38:01 -06:00
parent 83ca0b825d
commit b27ca7c0c0

@ -1208,8 +1208,8 @@ class Connection(object):
cacert=self.cacert,
insecure=self.insecure)
def http_connection(self):
return http_connection(self.url,
def http_connection(self, url=None):
return http_connection(url if url else self.url,
cacert=self.cacert,
insecure=self.insecure,
ssl_compression=self.ssl_compression)
@ -1386,5 +1386,5 @@ class Connection(object):
scheme = urlparse(url).scheme
netloc = urlparse(url).netloc
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)