From 7e7a1ded59e769eccd5d9a65da146ca5beb698ca Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Tue, 11 May 2021 17:23:47 +0300 Subject: [PATCH] Add reason as comment for ignoring returned error in allocateResource --- engine/resources.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/resources.go b/engine/resources.go index 0e9d88714..6c0e0b4ae 100644 --- a/engine/resources.go +++ b/engine/resources.go @@ -289,7 +289,7 @@ func (rs Resources) allocateResource(ru *ResourceUsage, dryRun bool) (alcMessage for _, r := range rs { r.removeExpiredUnits() if _, hasID := r.Usages[ru.ID]; hasID && !dryRun { // update - r.clearUsage(ru.ID) + r.clearUsage(ru.ID) // clearUsage returns error only when ru.ID does not exist in the Usages map } if r.rPrf == nil { err = fmt.Errorf("empty configuration for resourceID: %s", r.TenantID())