diff --git a/cmd/helm/template.go b/cmd/helm/template.go index a47631c0d..d000745ad 100644 --- a/cmd/helm/template.go +++ b/cmd/helm/template.go @@ -111,9 +111,9 @@ func newTemplateCmd(cfg *action.Configuration, out io.Writer) *cobra.Command { if missing { return fmt.Errorf("could not find template %s in chart", f) } - for _, m := range manifestsToRender { - fmt.Fprintf(out, "---\n%s\n", m) - } + } + for _, m := range manifestsToRender { + fmt.Fprintf(out, "---\n%s\n", m) } } else { fmt.Fprintf(out, "%s", manifests.String())