Don't print ROLLING BACK if atomic is not set

Signed-off-by: Mike Eves <michael.eves@autotrader.co.uk>
pull/5507/head
Mike Eves 6 years ago
parent 15d5deeaea
commit bc660928de

@ -275,8 +275,9 @@ func (u *upgradeCmd) run() error {
helm.UpgradeWait(u.wait),
helm.UpgradeDescription(u.description))
if err != nil {
fmt.Fprintf(u.out, "UPGRADE FAILED\nROLLING BACK\nError: %v\n", prettyError(err))
fmt.Fprintf(u.out, "UPGRADE FAILED\nError: %v\n", prettyError(err))
if u.atomic {
fmt.Fprint(u.out, "ROLLING BACK")
rollback := &rollbackCmd{
out: u.out,
client: u.client,

Loading…
Cancel
Save