From 409ea5d5683b1fcc0f80c0b4c85b73461eab9ed0 Mon Sep 17 00:00:00 2001 From: Stanton Xu Date: Sat, 6 Jun 2020 19:52:00 -0700 Subject: [PATCH] Fix out not defined problem, replaced by os.Stdout Signed-off-by: Stanton Xu --- cmd/helm/install.go | 2 +- cmd/helm/upgrade.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/helm/install.go b/cmd/helm/install.go index 784f041c4..f9aeb9945 100644 --- a/cmd/helm/install.go +++ b/cmd/helm/install.go @@ -268,7 +268,7 @@ func (i *installCmd) run() error { } if chartRequested.Metadata.Deprecated { - fmt.Fprintln(out, "WARNING: This chart is deprecated") + fmt.Fprintln(os.Stdout, "WARNING: This chart is deprecated") } diff --git a/cmd/helm/upgrade.go b/cmd/helm/upgrade.go index d3ff163d4..1852abeb9 100644 --- a/cmd/helm/upgrade.go +++ b/cmd/helm/upgrade.go @@ -267,7 +267,7 @@ func (u *upgradeCmd) run() error { } if ch.Metadata.Deprecated { - fmt.Fprintln(out, "WARNING: This chart is deprecated") + fmt.Fprintln(os.Stdout, "WARNING: This chart is deprecated") } resp, err := u.client.UpdateReleaseFromChart(