From 459a63c1ae4a3571933097a59f2dc7b544a3cb39 Mon Sep 17 00:00:00 2001 From: Lee Bontecou Date: Tue, 10 Dec 2019 17:35:50 -0600 Subject: [PATCH] bugfix template show-only duplicates Signed-off-by: Lee Bontecou --- cmd/helm/template.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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())