mirror of
https://github.com/goharbor/harbor
synced 2024-09-21 08:09:51 +00:00
fix(quota): ignore the fail when getting reference of quota (#13651)
Closes #13387 Signed-off-by: He Weiwei <hweiwei@vmware.com>
This commit is contained in:
parent
343e3b0c1e
commit
e2bc0a46e0
|
@ -132,10 +132,11 @@ func (c *controller) assembleQuota(ctx context.Context, q *quota.Quota, opts *Op
|
|||
|
||||
ref, err := driver.Load(ctx, q.ReferenceID)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
log.G(ctx).Warningf("failed to load referenced %s object %s for quota %d, error %v",
|
||||
q.Reference, q.ReferenceID, q.ID, err)
|
||||
} else {
|
||||
q.Ref = ref
|
||||
}
|
||||
|
||||
q.Ref = ref
|
||||
}
|
||||
|
||||
return q, nil
|
||||
|
|
Loading…
Reference in New Issue
Block a user