fix(tiller): make GetReleaseContent return any release

For some reason, GetReleaseContent was configured to return the latest
release only if it is in state DEPLOYED. But a release with a version is
returned regardless of release. This made it really hard to debug failed
releases, even though we have the data to show.

Closes #2525
pull/2541/head
Matt Butcher 8 years ago
parent 3647e60786
commit c913911337
No known key found for this signature in database
GPG Key ID: DCD5F5E5EF32C345

@ -28,7 +28,7 @@ func (s *ReleaseServer) GetReleaseContent(c ctx.Context, req *services.GetReleas
} }
if req.Version <= 0 { if req.Version <= 0 {
rel, err := s.env.Releases.Deployed(req.Name) rel, err := s.env.Releases.Last(req.Name)
return &services.GetReleaseContentResponse{Release: rel}, err return &services.GetReleaseContentResponse{Release: rel}, err
} }

Loading…
Cancel
Save