Skip to content

Commit df35dc1

Browse files
authored
fix(f3): correctly construct the manifest template (#12628)
1 parent bc8c29b commit df35dc1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cli/f3.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -177,5 +177,9 @@ func prettyPrintManifest(out io.Writer, manifest *manifest.Manifest) error {
177177
Certificate Exchange Min Poll Interval: {{.CertificateExchange.MinimumPollInterval}}
178178
Certificate Exchange Max Poll Interval: {{.CertificateExchange.MaximumPollInterval}}
179179
`
180-
return template.New("manifest").ExecuteTemplate(out, manifestTemplate, manifest)
180+
t, err := template.New("manifest").Parse(manifestTemplate)
181+
if err != nil {
182+
return fmt.Errorf("failed to parse manifest template: %w", err)
183+
}
184+
return t.ExecuteTemplate(out, "manifest", manifest)
181185
}

0 commit comments

Comments
 (0)