|
|
@ -210,10 +210,7 @@ func (r *Rollback) performRollback(currentRelease, targetRelease *release.Releas
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
targetRelease.Info.Status = release.StatusDeployed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deployed, err := r.cfg.Releases.DeployedAll(currentRelease.Name)
|
|
|
|
deployed, err := r.cfg.Releases.DeployedAll(currentRelease.Name)
|
|
|
|
|
|
|
|
|
|
|
|
if err != nil && !strings.Contains(err.Error(), "has no deployed releases") {
|
|
|
|
if err != nil && !strings.Contains(err.Error(), "has no deployed releases") {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -224,5 +221,7 @@ func (r *Rollback) performRollback(currentRelease, targetRelease *release.Releas
|
|
|
|
r.cfg.recordRelease(rel)
|
|
|
|
r.cfg.recordRelease(rel)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
targetRelease.Info.Status = release.StatusDeployed
|
|
|
|
|
|
|
|
|
|
|
|
return targetRelease, nil
|
|
|
|
return targetRelease, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|