From 2252a5b0f7a58f2794e98b0a920d33d8d1db1c6a Mon Sep 17 00:00:00 2001 From: Yuval Kohavi Date: Wed, 20 Jul 2022 09:24:39 -0400 Subject: [PATCH] build --- pkg/cmd/diag/logs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/diag/logs.go b/pkg/cmd/diag/logs.go index 9b09a4a..12f4d9f 100644 --- a/pkg/cmd/diag/logs.go +++ b/pkg/cmd/diag/logs.go @@ -163,7 +163,7 @@ func (o *LogsOptions) Run() error { LogDrainTime: o.drainTime, } - if colorNotAvailable() || o.noColor { + if colorNotAvailable(o.IOStreams.Out) || o.noColor { color.NoColor = true } return printer.PrintLogs(o.ctx, o.clientset.CoreV1().Pods(o.resultingContext.Namespace), o.podAndContainerNames)