From 638b760067c1aaf4d8df7c149efb4a7abaa630ca Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Mon, 16 Oct 2017 15:07:10 -0700 Subject: [PATCH] Set ansible stdin to /dev/null Without this, when using the nullwrap driver, ansible throws the following exception: AttributeError: 'NoneType' object has no attribute 'isatty' Change-Id: Ic2d769fa1a0a1faf173aa36d33b291065b44a18b --- zuul/executor/server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zuul/executor/server.py b/zuul/executor/server.py index 38640038dc..5998922e63 100644 --- a/zuul/executor/server.py +++ b/zuul/executor/server.py @@ -1300,6 +1300,7 @@ class AnsibleJob(object): self.proc = popen( cmd, cwd=self.jobdir.work_root, + stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, preexec_fn=os.setsid,