mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 10:27:37 -02:30
revert expect(use_poll=True) due to a bug that causes os.read() hangs
There's a bug in the implementation in pexpect: pexpect/pexpect#491 Issues that could be related to this: ansible/awx#1870 ansible/awx#1840 Rolling this back will cause #861 to no longer be "fixed". We'll have to solve it another way, or wait for pexpect to fix the poll bug.
This commit is contained in:
@@ -101,7 +101,7 @@ def run_pexpect(args, cwd, env, logfile,
|
|||||||
|
|
||||||
child = pexpect.spawn(
|
child = pexpect.spawn(
|
||||||
args[0], args[1:], cwd=cwd, env=env, ignore_sighup=True,
|
args[0], args[1:], cwd=cwd, env=env, ignore_sighup=True,
|
||||||
encoding='utf-8', echo=False, use_poll=True
|
encoding='utf-8', echo=False
|
||||||
)
|
)
|
||||||
child.logfile_read = logfile
|
child.logfile_read = logfile
|
||||||
canceled = False
|
canceled = False
|
||||||
|
|||||||
Reference in New Issue
Block a user