diff options
author | Leo Hanisch <23164374+HaaLeo@users.noreply.github.com> | 2020-03-20 12:40:58 +0100 |
---|---|---|
committer | Leo Hanisch <23164374+HaaLeo@users.noreply.github.com> | 2020-03-20 12:40:58 +0100 |
commit | dac038aca2fd47328846a7f98457b574d31b33ab (patch) | |
tree | 218eb70496137257159d05a4dc5c1d85cd631e76 | |
parent | 030af62dca982e62ed418314c857da1f90ce4282 (diff) | |
download | docker-py-dac038aca2fd47328846a7f98457b574d31b33ab.tar.gz |
Fixes docker/docker-py#2533
Signed-off-by: Leo Hanisch <23164374+HaaLeo@users.noreply.github.com>
-rw-r--r-- | docker/transport/sshconn.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/transport/sshconn.py b/docker/transport/sshconn.py index 7de0e59..9cfd998 100644 --- a/docker/transport/sshconn.py +++ b/docker/transport/sshconn.py @@ -100,6 +100,8 @@ class SSHHTTPAdapter(BaseHTTPAdapter): ) if 'hostname' in host_config: self.ssh_params['hostname'] = host_config['hostname'] + if 'identityfile' in host_config: + self.ssh_params['key_filename'] = host_config['identityfile'] if base_url.port is None and 'port' in host_config: self.ssh_params['port'] = self.ssh_conf['port'] if base_url.username is None and 'user' in host_config: |