From 10c61d2f6497a9c9a4bef434e020232571369a2a Mon Sep 17 00:00:00 2001 From: Justin Scott Date: Fri, 16 Jun 2017 16:04:49 -0700 Subject: [PATCH] Check output flag as lowercase --- cmd/helm/init.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/helm/init.go b/cmd/helm/init.go index 54622e11b..d79a8f65f 100644 --- a/cmd/helm/init.go +++ b/cmd/helm/init.go @@ -21,6 +21,7 @@ import ( "fmt" "io" "os" + "strings" "github.com/spf13/cobra" apierrors "k8s.io/apimachinery/pkg/api/errors" @@ -194,7 +195,7 @@ func (i *initCmd) run() error { if body, err = installer.DeploymentManifest(&i.opts); err != nil { return err } - switch i.opts.Output { + switch strings.ToLower(i.opts.Output) { case "json": jsonb, err := yaml.ToJSON([]byte(body)) if err != nil {