fix(f3): correctly construct the manifest template (#12628)

This commit is contained in:
Steven Allen
2024-10-22 21:24:28 +00:00
committed by GitHub
parent bc8c29bf7f
commit df35dc1bc5

View File

@ -177,5 +177,9 @@ func prettyPrintManifest(out io.Writer, manifest *manifest.Manifest) error {
Certificate Exchange Min Poll Interval: {{.CertificateExchange.MinimumPollInterval}}
Certificate Exchange Max Poll Interval: {{.CertificateExchange.MaximumPollInterval}}
`
return template.New("manifest").ExecuteTemplate(out, manifestTemplate, manifest)
t, err := template.New("manifest").Parse(manifestTemplate)
if err != nil {
return fmt.Errorf("failed to parse manifest template: %w", err)
}
return t.ExecuteTemplate(out, "manifest", manifest)
}