From 04577f7e158343a26c0853b164bce8fb0296e061 Mon Sep 17 00:00:00 2001 From: Danielle Tomlinson Date: Mon, 12 Nov 2018 22:08:04 -0800 Subject: [PATCH] executor: Fix stdout stderr copy/paste --- client/driver/executor/executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/driver/executor/executor.go b/client/driver/executor/executor.go index 5075b19d1..5316a27b5 100644 --- a/client/driver/executor/executor.go +++ b/client/driver/executor/executor.go @@ -135,7 +135,7 @@ func (nopCloser) Close() error { return nil } // Stdout returns a writer for the configured file descriptor func (c *ExecCommand) Stdout() (io.WriteCloser, error) { if c.stdout == nil { - if c.StderrPath != "" { + if c.StdoutPath != "" { f, err := fifo.Open(c.StdoutPath) if err != nil { return nil, fmt.Errorf("failed to create stdout: %v", err)