Skip to content

Commit

Permalink
Backported #787 to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
retr0h committed Apr 10, 2017
1 parent ea730d6 commit 035d024
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion molecule/driver/vagrant.py
Expand Up @@ -108,7 +108,7 @@ def ansible_connection_options(self, instance_name):
'ansible_user': d['User'],
'ansible_host': d['HostName'],
'ansible_port': d['Port'],
'ansible_private_key_file': d['IdentityFile'],
'ansible_private_key_file': '"{}"'.format(d['IdentityFile']),
'connection': 'ssh',
'ansible_ssh_extra_args': ' '.join(ssh_options),
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/driver/test_vagrant.py
Expand Up @@ -122,7 +122,7 @@ def test_ansible_connection_options(mocker, vagrant_instance):
'ansible_host': '127.0.0.1',
'ansible_port': 2222,
'ansible_user': 'vagrant',
'ansible_private_key_file': '/foo/bar',
'ansible_private_key_file': '"/foo/bar"',
'connection': 'ssh',
'ansible_ssh_extra_args': ('-o UserKnownHostsFile=/dev/null '
'-o ControlMaster=auto '
Expand Down

0 comments on commit 035d024

Please sign in to comment.