Skip to content

Commit

Permalink
Merge pull request ansible#5669 from mscherer/fix_synchronize_local
Browse files Browse the repository at this point in the history
Make synchronize module work better with local transport, fix ansible#5668
  • Loading branch information
mpdehaan committed Jan 17, 2014
2 parents 0afa0b4 + 5c5c8fd commit e3e6f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/runner/action_plugins/synchronize.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def run(self, conn, tmp, module_name, module_args,

if options.get('mode', 'push') == 'pull':
(dest_host, src_host) = (src_host, dest_host)
if not dest_host is src_host:
if not dest_host is src_host and self.original_transport != 'local':
user = inject.get('ansible_ssh_user',
self.runner.remote_user)
private_key = inject.get('ansible_ssh_private_key_file', self.runner.private_key_file)
Expand Down

0 comments on commit e3e6f02

Please sign in to comment.