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:
parent
e29ae99b50
commit
46a3a6a03e
1 changed files with 1 additions and 1 deletions
|
@ -424,7 +424,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
||||||
cmd = ""
|
cmd = ""
|
||||||
in_data = None
|
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
|
in_data = module_data
|
||||||
else:
|
else:
|
||||||
if remote_module_path:
|
if remote_module_path:
|
||||||
|
|
Loading…
Reference in a new issue