mirror of https://github.com/docker/docker-py.git
transport: fix ProxyCommand for SSH conn (#2993)
Signed-off-by: Guy Lichtman <glicht@users.noreply.github.com>
This commit is contained in:
parent
56dd6de7df
commit
4e19cc48df
|
|
@ -204,7 +204,7 @@ class SSHHTTPAdapter(BaseHTTPAdapter):
|
|||
host_config = conf.lookup(base_url.hostname)
|
||||
if 'proxycommand' in host_config:
|
||||
self.ssh_params["sock"] = paramiko.ProxyCommand(
|
||||
self.ssh_conf['proxycommand']
|
||||
host_config['proxycommand']
|
||||
)
|
||||
if 'hostname' in host_config:
|
||||
self.ssh_params['hostname'] = host_config['hostname']
|
||||
|
|
|
|||
Loading…
Reference in New Issue