From 4b84f975f14714cedad2dc9697c9a181075b04ea Mon Sep 17 00:00:00 2001 From: Saravanan Balasubramanian <33908564+sarabala1979@users.noreply.github.com> Date: Fri, 4 Oct 2019 11:51:39 -0700 Subject: [PATCH] Fix global lint issue (#1641) --- workflow/validate/validate.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/workflow/validate/validate.go b/workflow/validate/validate.go index d2010f6b45ae..ab508de706de 100644 --- a/workflow/validate/validate.go +++ b/workflow/validate/validate.go @@ -879,6 +879,8 @@ func (ctx *templateValidationCtx) validateDAG(scope map[string]interface{}, tmpl if err != nil { return errors.Errorf(errors.CodeBadRequest, "templates.%s.tasks.%s %s", tmpl.Name, task.Name, err.Error()) } + prefix := fmt.Sprintf("tasks.%s", task.Name) + ctx.addOutputsToScope(resolvedTmpl, prefix, scope, false) resolvedTemplates[task.Name] = resolvedTmpl dupDependencies := make(map[string]bool) for j, depName := range task.Dependencies {