|
|
@ -225,11 +225,11 @@ 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.Deployed(req.Name)
|
|
|
|
return &services.GetReleaseContentResponse{Release: rel}, err
|
|
|
|
return &services.GetReleaseContentResponse{Release: rel}, err
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
rel, err := s.env.Releases.Get(req.Name, req.Version)
|
|
|
|
rel, err := s.env.Releases.Get(req.Name, req.Version)
|
|
|
|
return &services.GetReleaseContentResponse{Release: rel}, err
|
|
|
|
return &services.GetReleaseContentResponse{Release: rel}, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (s *releaseServer) UpdateRelease(c ctx.Context, req *services.UpdateReleaseRequest) (*services.UpdateReleaseResponse, error) {
|
|
|
|
func (s *releaseServer) UpdateRelease(c ctx.Context, req *services.UpdateReleaseRequest) (*services.UpdateReleaseResponse, error) {
|
|
|
|
currentRelease, updatedRelease, err := s.prepareUpdate(req)
|
|
|
|
currentRelease, updatedRelease, err := s.prepareUpdate(req)
|
|
|
|