Ansible launcher: don't close stdout in command module
If the job fails to close stdout/stderr, then this will cause an exception. Change-Id: I994c0a0c09bf2ec316ee7c7c51a18fa22372f152
This commit is contained in:
parent
fa3df0bf1f
commit
280cd8d062
@ -323,7 +323,10 @@ def zuul_run_command(self, args, check_rc=False, close_fds=True, executable=None
|
|||||||
"after child exited")
|
"after child exited")
|
||||||
console.addLine("[Zuul] Task exit code: %s\n" % ret)
|
console.addLine("[Zuul] Task exit code: %s\n" % ret)
|
||||||
|
|
||||||
cmd.stdout.close()
|
# ZUUL: If the console log follow thread *is* stuck in readline,
|
||||||
|
# we can't close stdout (attempting to do so raises an
|
||||||
|
# exception) , so this is disabled.
|
||||||
|
# cmd.stdout.close()
|
||||||
|
|
||||||
# ZUUL: stdout and stderr are in the console log file
|
# ZUUL: stdout and stderr are in the console log file
|
||||||
stdout = ''
|
stdout = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user