Merge pull request #10084 from mattfarina/fix-10082

Fixing issue with non-existant .Template when using tpl function
pull/10092/head
Matt Farina 3 years ago committed by GitHub
commit 3d1bc72827
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -260,7 +260,6 @@ func (e Engine) renderWithReferences(tpls, referenceTpls map[string]renderable)
if err := t.ExecuteTemplate(&buf, filename, vals); err != nil {
return map[string]string{}, cleanupExecError(filename, err)
}
delete(vals, "Template")
// Work around the issue where Go will emit "<no value>" even if Options(missing=zero)
// is set. Since missing=error will never get here, we do not need to handle

Loading…
Cancel
Save