Uncomment code that was accidentally commented out

Signed-off-by: Anton Bretting <sajfer@gmail.com>
This commit is contained in:
Anton Bretting 2022-06-12 09:17:03 +02:00 committed by Yusuke Kuoka
parent eb2419aa15
commit ca7942c751
1 changed files with 11 additions and 11 deletions

View File

@ -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 {