Skip to content

Commit

Permalink
Set default behavior for missing key in map
Browse files Browse the repository at this point in the history
... when creating template object
  • Loading branch information
peb-adr committed Dec 6, 2023
1 parent 5a41edd commit 54a5a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func CreateDeploymentFilesFromTree(outdir string, force bool, tplDirName *string
// CreateDeploymentFile builds a single deployment file to the given path. Use a truthy value for force
// to override an existing file.
func CreateDeploymentFile(outfile string, force bool, tplFile []byte, cfg *YmlConfig) error {
tmpl, err := template.New("Deployment File").Option("missingkey=error").Funcs(funcMap).Parse(string(tplFile))
tmpl, err := template.New("Deployment File").Funcs(funcMap).Parse(string(tplFile))
if err != nil {
return fmt.Errorf("parsing template: %w", err)
}
Expand Down

0 comments on commit 54a5a4e

Please sign in to comment.