Skip to content

Commit

Permalink
refactor(cli): simplify counter in printer (#13291)
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Gilgur <[email protected]>
  • Loading branch information
Anton Gilgur authored Jul 2, 2024
1 parent 825aacf commit d1f2f01
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions util/printer/workflow-printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,7 @@ func countPendingRunningCompletedNodes(wf *wfv1.Workflow) (int, int, int) {
running := 0
completed := 0
for _, node := range wf.Status.Nodes {
tmpl := wf.GetTemplateByName(util.GetTemplateFromNode(node))
if tmpl == nil || !tmpl.IsPodType() {
if node.Type != wfv1.NodeTypePod {
continue
}
if node.Fulfilled() {
Expand Down

0 comments on commit d1f2f01

Please sign in to comment.