fix(tiller): don't update purged releases

fixes #1807
pull/1812/head
Adam Reese 8 years ago
parent d830bc19a5
commit 6600fcb0e6

@ -961,13 +961,16 @@ func (s *ReleaseServer) UninstallRelease(c ctx.Context, req *services.UninstallR
}
}
rel.Info.Status.Code = release.Status_DELETED
if req.Purge {
if err := s.purgeReleases(rels...); err != nil {
err := s.purgeReleases(rels...)
if err != nil {
log.Printf("uninstall: Failed to purge the release: %s", err)
}
return res, err
}
rel.Info.Status.Code = release.Status_DELETED
if err := s.env.Releases.Update(rel); err != nil {
log.Printf("uninstall: Failed to store updated release: %s", err)
}

Loading…
Cancel
Save