Skip to content

Commit

Permalink
fix: fix validation error for go templates that use a crictl defined …
Browse files Browse the repository at this point in the history
…builtin function
  • Loading branch information
iFrozenPhoenix committed Oct 20, 2024
1 parent 972d221 commit ddd1b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/crictl/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ func tmplExecuteRawJSON(tmplStr, rawJSON string) (string, error) {
}

func validateTemplate(tmplStr string) error {
_, err := template.New("").Parse(tmplStr)
_, err := template.New("").Funcs(builtinTmplFuncs()).Parse(tmplStr)
return err
}

0 comments on commit ddd1b0a

Please sign in to comment.