fix: make sure the deployed release is in the correct order

Signed-off-by: Jason Liew <jason_liew@163.com>
pull/7238/head
Jason Liew 6 years ago
parent eb5bb1cc65
commit 695eb46b2f

@ -122,6 +122,9 @@ func (s *Storage) Deployed(name string) (*rspb.Release, error) {
return nil, errors.Errorf("%q has no deployed releases", name)
}
// We want oldest to newest
relutil.SortByRevision(ls)
return ls[len(ls)-1], err
}

Loading…
Cancel
Save