Skip to content

Commit

Permalink
Fix child node template handling (#1654)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtaniwaki authored and sarabala1979 committed Oct 7, 2019
1 parent 7f385a6 commit 7e5af47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflow/controller/steps.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ func (woc *wfOperationCtx) executeSteps(nodeName string, tmplCtx *templateresolu
}
if len(childNodes) > 0 {
// Expanded child nodes should be created from the same template.
tmpl := woc.wf.GetStoredTemplate(&childNodes[0])
tmpl := woc.wf.GetStoredOrLocalTemplate(&childNodes[0])
if tmpl == nil {
return errors.InternalErrorf("Template of step node '%s' not found", childNode)
return errors.InternalErrorf("Template of step node '%s' not found (inferred from %s)", childNodeName, childNodes[0].Name)
}
err := woc.processAggregateNodeOutputs(tmpl, stepsCtx.scope, prefix, childNodes)
if err != nil {
Expand Down

0 comments on commit 7e5af47

Please sign in to comment.