From 7e5af4748d406f244378da86fda339a0c9e74476 Mon Sep 17 00:00:00 2001 From: Daisuke Taniwaki Date: Tue, 8 Oct 2019 01:44:26 +0900 Subject: [PATCH] Fix child node template handling (#1654) --- workflow/controller/steps.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/controller/steps.go b/workflow/controller/steps.go index c19be719e5c9..dbae613a561e 100644 --- a/workflow/controller/steps.go +++ b/workflow/controller/steps.go @@ -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 {