summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-07-31 18:26:30 -0700
committerToshio Kuratomi <toshio@fedoraproject.org>2015-07-31 18:26:30 -0700
commit0d72be39539587d06b556ce73723325ca4eb1167 (patch)
treeb2a976d3121ef265c519f3bcbbf9fcf08e251259
parentd1933accc3c2a4c5cdc4a6949c6f7cb7bde2f5fb (diff)
downloadansible-synchronize-fix2.tar.gz
become protection for local connections no longer neededsynchronize-fix2
-rw-r--r--lib/ansible/plugins/action/synchronize.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/ansible/plugins/action/synchronize.py b/lib/ansible/plugins/action/synchronize.py
index 7eebdc2a21..11171d3e03 100644
--- a/lib/ansible/plugins/action/synchronize.py
+++ b/lib/ansible/plugins/action/synchronize.py
@@ -132,9 +132,12 @@ class ActionModule(ActionBase):
new_connection = connection_loader.get('local', self._play_context, new_stdin)
self._connection = new_connection
transport_overridden = True
+ ### FIXME: We think that this was here for v1 because the local
+ # connection didn't support sudo. In v2 it does so we think it's
+ # safe to remove this now.
+
# Also disable sudo
- ### FIXME: Why exactly?
- self._play_context.become = False
+ #self._play_context.become = False
# MUNGE SRC AND DEST PER REMOTE_HOST INFO
src = self._task.args.get('src', None)