Skip to content

Commit a657631

Browse files
dtaniwakisarabala1979
authored andcommitted
Fix child node template handling (#1654)
1 parent 982c7c5 commit a657631

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

workflow/controller/steps.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ func (woc *wfOperationCtx) executeSteps(nodeName string, tmplCtx *templateresolu
104104
}
105105
if len(childNodes) > 0 {
106106
// Expanded child nodes should be created from the same template.
107-
tmpl := woc.wf.GetStoredTemplate(&childNodes[0])
107+
tmpl := woc.wf.GetStoredOrLocalTemplate(&childNodes[0])
108108
if tmpl == nil {
109-
return errors.InternalErrorf("Template of step node '%s' not found", childNode)
109+
return errors.InternalErrorf("Template of step node '%s' not found (inferred from %s)", childNodeName, childNodes[0].Name)
110110
}
111111
err := woc.processAggregateNodeOutputs(tmpl, stepsCtx.scope, prefix, childNodes)
112112
if err != nil {

0 commit comments

Comments
 (0)