Make tests happy

This commit is contained in:
Aleksey Ovcharenko 2013-11-22 04:06:10 +02:00
parent 2222f6df58
commit 30678e04ac
2 changed files with 11 additions and 2 deletions

View file

@ -79,9 +79,11 @@ class ActionModule(object):
if not dest_host is src_host:
user = inject.get('ansible_ssh_user',
self.runner.remote_user)
private_key = os.path.expanduser(inject.get('ansible_ssh_private_key_file', self.runner.private_key_file))
private_key = inject.get('ansible_ssh_private_key_file', self.runner.private_key_file)
if not private_key is None:
private_key = os.path.expanduser(private_key)
options['private_key'] = private_key
src = self._process_origin(src_host, src, user)
dest = self._process_origin(dest_host, dest, user)