Skip to content

Commit

Permalink
s/key_filename/identityfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakshmi Kannan committed Nov 28, 2016
1 parent 39dbb66 commit 2705ccf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions st2common/st2common/runners/paramiko_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,16 +637,13 @@ def _get_ssh_config_for_host(self, host):

ssh_config = ssh_config_parser.lookup(host)
if ssh_config:
for k in ('hostname', 'user', 'port'):
for k in ('hostname', 'user', 'port', 'identityfile'):
if k in ssh_config:
ssh_config_info[k] = ssh_config[k]

if 'proxycommand' in ssh_config:
ssh_config_info['sock'] = paramiko.ProxyCommand(ssh_config['proxycommand'])

if 'identityfile' in ssh_config:
ssh_config_info['key_filename'] = ssh_config['identityfile']

return ssh_config_info

@staticmethod
Expand Down

0 comments on commit 2705ccf

Please sign in to comment.