From ca7942c7513a4180c6ac4dd19fa7717350df0800 Mon Sep 17 00:00:00 2001 From: Anton Bretting Date: Sun, 12 Jun 2022 09:17:03 +0200 Subject: [PATCH] Uncomment code that was accidentally commented out Signed-off-by: Anton Bretting --- pkg/app/app.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pkg/app/app.go b/pkg/app/app.go index 4abb87ff..d4417fcb 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -1334,17 +1334,17 @@ func (a *App) apply(r *Run, c ApplyConfigProvider) (bool, bool, []error) { } } - // if len(releasesWithPreApply) > 0 { - // msg := "Releases with preapply hooks: \n" - // if infoMsg != nil { - // msg = fmt.Sprintf("%s%s", *infoMsg, msg) - // } - // infoMsg = &msg - // } - // for _, release := range releasesWithPreApply { - // tmp := fmt.Sprintf("%s %s (%s)", *infoMsg, release.Name, release.Chart) - // infoMsg = &tmp - // } + if len(releasesWithPreApply) > 0 { + msg := "Releases with preapply hooks: \n" + if infoMsg != nil { + msg = fmt.Sprintf("%s%s", *infoMsg, msg) + } + infoMsg = &msg + } + for _, release := range releasesWithPreApply { + tmp := fmt.Sprintf("%s %s (%s)", *infoMsg, release.Name, release.Chart) + infoMsg = &tmp + } if releasesToBeDeleted == nil && releasesToBeUpdated == nil && releasesWithPreApply == nil { if infoMsg != nil {