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:
He Weiwei 2020-12-01 20:41:31 +08:00 committed by GitHub
parent 343e3b0c1e
commit e2bc0a46e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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