Non-newstyle modules can't use pipelining

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.
This commit is contained in:
Toshio Kuratomi 2016-01-14 17:21:15 -08:00
parent cd0ad03053
commit 1b82de2354

View file

@ -430,7 +430,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
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: