Skip to content

Commit

Permalink
fix(f3): correctly construct the manifest template (#12628)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien authored Oct 22, 2024
1 parent bc8c29b commit df35dc1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli/f3.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit df35dc1

Please sign in to comment.