diff --git a/cmd/helm/template.go b/cmd/helm/template.go index 2f1f3e48a..abbd92dd1 100644 --- a/cmd/helm/template.go +++ b/cmd/helm/template.go @@ -262,10 +262,10 @@ func (t *templateCmd) run(cmd *cobra.Command, args []string) error { } if t.outputDir != "" { - writeToFile(t.outputDir, m.name, data) + writeToFile(t.outputDir, m.Name, data) continue } - fmt.Printf("---\n# Source: %s\n", m.name) + fmt.Printf("---\n# Source: %s\n", m.Name) fmt.Printf(data) } return nil