summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-10-22 17:15:58 -0700
committerToshio Kuratomi <toshio@fedoraproject.org>2015-10-23 13:38:44 -0700
commitca32d5bacc37cdab86c2b9507f85ccb29ec9be16 (patch)
tree9cd40fd7df1262771b0808877f375ba131bd02c8
parent3eea4e23d5f4807f92697e2798699e6f1e0e1c40 (diff)
downloadansible-synchronize-remote-to-itself.tar.gz
Potential fix for #12816synchronize-remote-to-itself
-rw-r--r--lib/ansible/plugins/action/synchronize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/action/synchronize.py b/lib/ansible/plugins/action/synchronize.py
index b0cdcb1b11..28c9ba7af3 100644
--- a/lib/ansible/plugins/action/synchronize.py
+++ b/lib/ansible/plugins/action/synchronize.py
@@ -182,7 +182,7 @@ class ActionModule(ActionBase):
# MUNGE SRC AND DEST PER REMOTE_HOST INFO
src = self._task.args.get('src', None)
dest = self._task.args.get('dest', None)
- if between_multiple_hosts or use_delegate:
+ if between_multiple_hosts:
# Private key handling
if use_delegate:
private_key = task_vars.get('ansible_ssh_private_key_file') or self._play_context.private_key_file