submitqueue.Run: copy series into result object after loading them from gerrit

So we have them in the history later.
This commit is contained in:
Florian Klink 2019-11-27 13:03:17 +01:00
parent 87d09f6163
commit 91deabe4b3

View file

@ -214,6 +214,12 @@ func (s *SubmitQueue) Run(fetchOnly bool) *Result {
r.Error = err
return r
}
// copy series to result object
for _, serie := range s.Series {
r.Series = append(r.Series, *serie)
}
if len(s.Series) == 0 {
// Nothing to do!
log.Warn("Nothing to do here")