From 0033f52f2f1a3eff1243b84fe47e8bd35d9fe440 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Sun, 21 Jan 2024 20:02:12 -0600 Subject: [PATCH] fix(exec): Fix output starting indented when log level is trace --- internal/actions/exec/exec.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/actions/exec/exec.go b/internal/actions/exec/exec.go index 0bb24ce2..6ba9200a 100644 --- a/internal/actions/exec/exec.go +++ b/internal/actions/exec/exec.go @@ -32,10 +32,11 @@ func (action Exec) Run(ctx context.Context) error { sizeQueue = t.MonitorSize(t.GetSize()) } + cmd := action.buildCommand().String() return t.Safe(func() error { return action.Client.Exec(ctx, kubernetes.ExecOptions{ Pod: action.JobPod, - Cmd: action.buildCommand().String(), + Cmd: cmd, Stdin: t.In, Stdout: t.Out, Stderr: os.Stderr,