Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
yuval-k committed Jul 20, 2022
1 parent 6c3ac11 commit 2252a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/diag/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2252a5b

Please sign in to comment.