mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #217 from jhoekx/connection-fixes
Expand user in ssh identity file
This commit is contained in:
commit
02abb5a83b
1 changed files with 26 additions and 26 deletions
|
@ -99,7 +99,7 @@ class ParamikoConnection(object):
|
|||
if 'user' in credentials:
|
||||
user = credentials['user']
|
||||
if 'identityfile' in credentials:
|
||||
keypair = credentials['identityfile']
|
||||
keypair = os.path.expanduser(credentials['identityfile'])
|
||||
|
||||
ssh = paramiko.SSHClient()
|
||||
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||
|
|
Loading…
Reference in a new issue