fix tag retention api bug

Signed-off-by: Ziming Zhang <zziming@vmware.com>
Change-Id: I26bb4aade70f35132a345a945fa19d35e8c92571
This commit is contained in:
Ziming Zhang 2019-07-29 19:29:03 +08:00
parent 7cc29f0b90
commit e8f9f58550

View File

@ -107,21 +107,21 @@ func fillStatus(exec *models.RetentionExecution) error {
total += v.(int)
switch k {
case jobmodels.JobScheduled:
running += 1
running += v.(int)
case jobmodels.JobPending:
running += 1
running += v.(int)
case jobmodels.JobRunning:
running += 1
running += v.(int)
case jobmodels.JobRetrying:
running += 1
running += v.(int)
case jobmodels.JobFinished:
succeed += 1
succeed += v.(int)
case jobmodels.JobCanceled:
stopped += 1
stopped += v.(int)
case jobmodels.JobStopped:
stopped += 1
stopped += v.(int)
case jobmodels.JobError:
failed += 1
failed += v.(int)
}
}
if total == 0 {