Skip to content

Commit

Permalink
Non-newstyle modules can't use pipelining
Browse files Browse the repository at this point in the history
This is because we pass arguments to non-newstyle modules via an
external file.  If we pipeline, then the interpreter thinks it has to
run the arguments as the script instead of what is piped in via stdin.
  • Loading branch information
abadger committed Jan 15, 2016
1 parent cd0ad03 commit 1b82de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/plugins/action/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def _execute_module(self, module_name=None, module_args=None, tmp=None, task_var
cmd = ""
in_data = None

if self._connection.has_pipelining and self._play_context.pipelining and not C.DEFAULT_KEEP_REMOTE_FILES:
if self._connection.has_pipelining and self._play_context.pipelining and not C.DEFAULT_KEEP_REMOTE_FILES and module_style == 'new':
in_data = module_data
else:
if remote_module_path:
Expand Down

0 comments on commit 1b82de2

Please sign in to comment.