mirror of
https://github.com/filecoin-project/lotus.git
synced 2025-05-17 23:28:23 +08:00
fix(f3): correctly construct the manifest template (#12628)
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user