Skip to content

Commit

Permalink
fix: Panic in getTemplateOutputsFromScope (argoproj#6560)
Browse files Browse the repository at this point in the history
Signed-off-by: Saravanan Balasubramanian <[email protected]>
  • Loading branch information
sarabala1979 committed Aug 19, 2021
1 parent 64fbf69 commit f1cf7ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions workflow/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2444,6 +2444,9 @@ func getTemplateOutputsFromScope(tmpl *wfv1.Template, scope *wfScope) (*wfv1.Out
}
return nil, fmt.Errorf("unable to resolve outputs from scope: %s", err)
}
if resolvedArt == nil {
continue
}
resolvedArt.Name = art.Name
outputs.Artifacts = append(outputs.Artifacts, *resolvedArt)
}
Expand Down

0 comments on commit f1cf7ee

Please sign in to comment.