mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-27 13:02:59 +02:00
fix dry run creation time (#19060)
fixes #19059 Give the mock time for dry run, otherwise, it will be zero. Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
bef4ccc782
commit
d93f24a4dc
@ -554,6 +554,7 @@ func (gc *GarbageCollector) deletedArt(ctx job.Context) (map[string][]model.Arti
|
||||
ManifestMediaType: untagged.ManifestMediaType,
|
||||
RepositoryName: untagged.RepositoryName,
|
||||
Digest: untagged.Digest,
|
||||
CreationTime: time.Now(),
|
||||
}
|
||||
allTrashedArts = append(allTrashedArts, simulateDeletion)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user