bugfix template show-only duplicates

Signed-off-by: Lee Bontecou <lbontecou@thezebra.com>
pull/7204/head
Lee Bontecou 6 years ago
parent e30cbbbaee
commit 459a63c1ae

@ -111,10 +111,10 @@ func newTemplateCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
if missing { if missing {
return fmt.Errorf("could not find template %s in chart", f) return fmt.Errorf("could not find template %s in chart", f)
} }
}
for _, m := range manifestsToRender { for _, m := range manifestsToRender {
fmt.Fprintf(out, "---\n%s\n", m) fmt.Fprintf(out, "---\n%s\n", m)
} }
}
} else { } else {
fmt.Fprintf(out, "%s", manifests.String()) fmt.Fprintf(out, "%s", manifests.String())
} }

Loading…
Cancel
Save