mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
Allocate an explicit stdin in async_wrapper (#53410)
* add changelog fragment * Add stdin async test * Allocate an explicit stdin in async_wrapper. Fixes #50758
This commit is contained in:
parent
72eb8672bf
commit
264d9a9008
3 changed files with 10 additions and 1 deletions
|
@ -148,7 +148,8 @@ def _run_module(wrapped_cmd, jid, job_path):
|
|||
interpreter = _get_interpreter(cmd[0])
|
||||
if interpreter:
|
||||
cmd = interpreter + cmd
|
||||
script = subprocess.Popen(cmd, shell=False, stdin=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
script = subprocess.Popen(cmd, shell=False, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE)
|
||||
|
||||
(outdata, stderr) = script.communicate()
|
||||
if PY3:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue