Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
Signed-off-by: smile-luobin <smile.luobin@gmail.com>
  • Loading branch information
smile-luobin committed Sep 9, 2021
1 parent 01f8668 commit f63a107
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflow/validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -1199,8 +1199,8 @@ func (ctx *templateValidationCtx) validateDAG(scope map[string]interface{}, tmpl
resolvedTemplates[task.Name] = resolvedTmpl

prefix := fmt.Sprintf("tasks.%s", task.Name)
//aggregate := len(task.WithItems) > 0 || task.WithParam != ""
ctx.addOutputsToScope(resolvedTmpl, prefix, scope, false, false)
aggregate := len(task.WithItems) > 0 || task.WithParam != ""
ctx.addOutputsToScope(resolvedTmpl, prefix, scope, aggregate, false)

err = common.ValidateTaskResults(&task)
if err != nil {
Expand Down

0 comments on commit f63a107

Please sign in to comment.