mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
Expand ~ shell shortcuts for the --private-key argument
This commit is contained in:
parent
7df3d811f2
commit
4c64d0d6be
2 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ class Connection(object):
|
|||
allow_agent = False
|
||||
try:
|
||||
ssh.connect(self.host, username=user, allow_agent=allow_agent, look_for_keys=True,
|
||||
key_filename=self.runner.private_key_file, password=self.runner.remote_pass,
|
||||
key_filename=os.path.expanduser(self.runner.private_key_file), password=self.runner.remote_pass,
|
||||
timeout=self.runner.timeout, port=self.port)
|
||||
except Exception, e:
|
||||
msg = str(e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue