Skip to content

Commit

Permalink
fix fan out matrix task failed due to result ref
Browse files Browse the repository at this point in the history
Signed-off-by: chengjoey <[email protected]>
  • Loading branch information
chengjoey authored and l-qing committed Jan 14, 2025
1 parent 3bc3fab commit ffa9945
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/apis/pipeline/v1/matrix_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ func (m *Matrix) countGeneratedCombinationsFromParams() int {
}
count := 1
for _, param := range m.Params {
count *= len(param.Value.ArrayVal)
if len(param.Value.ArrayVal) > 0 {
count *= len(param.Value.ArrayVal)
}
}
return count
}
Expand Down

0 comments on commit ffa9945

Please sign in to comment.