1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

Remove unneeded maxread

searchwindowsize was the important bit here
This commit is contained in:
Matthew Jones 2016-09-28 13:15:53 -04:00
parent 980fb5bf74
commit 162f0b81d1

View File

@ -575,7 +575,7 @@ class BaseTask(Task):
instance = self.update_model(instance.pk, status='running', instance = self.update_model(instance.pk, status='running',
output_replacements=output_replacements) output_replacements=output_replacements)
while child.isalive(): while child.isalive():
result_id = child.expect(expect_list, timeout=pexpect_timeout, maxread=100, searchwindowsize=100) result_id = child.expect(expect_list, timeout=pexpect_timeout, searchwindowsize=100)
if result_id in expect_passwords: if result_id in expect_passwords:
child.sendline(expect_passwords[result_id]) child.sendline(expect_passwords[result_id])
if logfile_pos != logfile.tell(): if logfile_pos != logfile.tell():