Update logging connection so it takes proxy scheme into account.
@@ -94,12 +94,14 @@ class LoggingConnection(LibcloudConnection):
if self.http_proxy_used:
if self.proxy_username and self.proxy_password:
- proxy_url = 'http://%s:%s@%s:%s' % (self.proxy_username,
+ proxy_url = '%s://%s:%s@%s:%s' % (self.proxy_scheme,
+ self.proxy_username,
self.proxy_password,
self.proxy_host,
self.proxy_port)
else:
- proxy_url = 'http://%s:%s' % (self.proxy_host,
+ proxy_url = '%s://%s:%s' % (self.proxy_scheme,
+ self.proxy_host,
self.proxy_port)
proxy_url = pquote(proxy_url)
cmd.extend(['--proxy', proxy_url])
