Reverse the wrong logic for tty.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
parent
b9d4eda403
commit
75e97dd168
@ -333,7 +333,7 @@ func (c *ContainerIO) Attach(opts AttachOptions) error {
|
|||||||
}
|
}
|
||||||
go attachStream(stdoutKey, close)
|
go attachStream(stdoutKey, close)
|
||||||
}
|
}
|
||||||
if opts.Tty && opts.Stderr != nil {
|
if !opts.Tty && opts.Stderr != nil {
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
wc, close := cioutil.NewWriteCloseInformer(opts.Stderr)
|
wc, close := cioutil.NewWriteCloseInformer(opts.Stderr)
|
||||||
if err := c.stderr.Add(stderrKey, wc); err != nil {
|
if err := c.stderr.Add(stderrKey, wc); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user