Skip to content

Commit

Permalink
fix: correct order in artifactGC error log message (#12935)
Browse files Browse the repository at this point in the history
Signed-off-by: static-moonlight <[email protected]>
  • Loading branch information
static-moonlight committed Apr 15, 2024
1 parent 2095621 commit ea5410a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/controller/artifact_gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ func (woc *wfOperationCtx) processCompletedArtifactGCPod(ctx context.Context, po
strategy := wfv1.ArtifactGCStrategy(strategyStr)

if pod.Status.Phase == corev1.PodFailed {
errMsg := fmt.Sprintf("Artifact Garbage Collection failed for strategy %s, pod %s exited with non-zero exit code: check pod logs for more information", pod.Name, strategy)
errMsg := fmt.Sprintf("Artifact Garbage Collection failed for strategy %s, pod %s exited with non-zero exit code: check pod logs for more information", strategy, pod.Name)
woc.addArtGCCondition(errMsg)
woc.addArtGCEvent(errMsg)
}
Expand Down

0 comments on commit ea5410a

Please sign in to comment.