From 48aae500fb6822dead9cf88a7401c7994ad62709 Mon Sep 17 00:00:00 2001 From: Christian Rohmann Date: Tue, 1 Oct 2024 13:36:35 +0200 Subject: [PATCH] Fix typo in variable containing error when fetching pod logs --- controllers/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/common.go b/controllers/common.go index 078d96b5..6359aa26 100644 --- a/controllers/common.go +++ b/controllers/common.go @@ -100,7 +100,7 @@ func inspectTestRun(ctx context.Context, log logr.Logger, k6 v1alpha1.TestRunI, defer podLogs.Close() buf := new(bytes.Buffer) - _, returnErr = io.Copy(buf, podLogs) + _, err = io.Copy(buf, podLogs) if err != nil { log.Error(err, "unable to copy logs from the pod") return