transport: fix ProxyCommand for SSH conn (#2993)

Signed-off-by: Guy Lichtman <glicht@users.noreply.github.com>
This commit is contained in:
Guy Lichtman 2022-07-26 22:16:12 +03:00 committed by GitHub
parent 56dd6de7df
commit 4e19cc48df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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']