Skip to content

Commit

Permalink
Fix typo in variable containing error when fetching pod logs
Browse files Browse the repository at this point in the history
  • Loading branch information
frittentheke committed Oct 1, 2024
1 parent 2fdcbb9 commit 48aae50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48aae50

Please sign in to comment.