mirror of
https://github.com/goharbor/harbor
synced 2024-09-21 12:46:13 +00:00
fix tag retention api bug
Signed-off-by: Ziming Zhang <zziming@vmware.com> Change-Id: I26bb4aade70f35132a345a945fa19d35e8c92571
This commit is contained in:
parent
7cc29f0b90
commit
e8f9f58550
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user