From 7e413437ad92298c59c4eb8f875ba86cbb33d27c Mon Sep 17 00:00:00 2001 From: George Jenkins Date: Thu, 19 Jan 2023 20:11:16 -0800 Subject: [PATCH] fix --- pkg/action/install.go | 3 +-- pkg/action/upgrade.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/action/install.go b/pkg/action/install.go index 835dc770b..9ec1d0513 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -458,8 +458,7 @@ func (i *Install) failRelease(rel *release.Release, err error) (*release.Release func (i *Install) isDryRun() bool { if i.DryRunMode != "" { switch i.DryRunMode { - case DryRunModeClient: - case DryRunModeServer: + case DryRunModeClient, DryRunModeServer: return true case DryRunModeNone: return false diff --git a/pkg/action/upgrade.go b/pkg/action/upgrade.go index 002dcf443..e6028cf28 100644 --- a/pkg/action/upgrade.go +++ b/pkg/action/upgrade.go @@ -171,8 +171,7 @@ func (u *Upgrade) RunWithContext(ctx context.Context, name string, chart *chart. func (u *Upgrade) isDryRun() bool { if u.DryRunMode != "" { switch u.DryRunMode { - case DryRunModeClient: - case DryRunModeServer: + case DryRunModeClient, DryRunModeServer: return true case DryRunModeNone: return false