Skip to content

Commit

Permalink
Fix for issue @synchronize doesn't substitute variables properly #16347
Browse files Browse the repository at this point in the history
… (#16349)

* Fix for issue @synchronize doesn't substitute variables properly #16347
  • Loading branch information
ovcharenko authored and abadger committed Aug 4, 2016
1 parent 595946b commit f326e49
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/ansible/plugins/action/synchronize.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,7 @@ def run(self, tmp=None, task_vars=None):

if not dest_is_local:
# Private key handling
if use_delegate:
private_key = task_vars.get('ansible_ssh_private_key_file') or self._play_context.private_key_file
else:
private_key = task_vars.get('ansible_ssh_private_key_file') or self._play_context.private_key_file
private_key = self._play_context.private_key_file

if private_key is not None:
private_key = os.path.expanduser(private_key)
Expand Down

0 comments on commit f326e49

Please sign in to comment.