Преглед изворни кода

continue processing on a single record failure

Signed-off-by: r2k1 <yokree@gmail.com>
r2k1 пре 2 година
родитељ
комит
877aad8900
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      pkg/costmodel/costmodel.go

+ 1 - 2
pkg/costmodel/costmodel.go

@@ -2555,8 +2555,7 @@ func (cm *CostModel) QueryAllocation(window kubecost.Window, resolution, step ti
 
 
 					if totals == nil {
 					if totals == nil {
 						log.Errorf("unable to locate asset totals for allocation %s", key)
 						log.Errorf("unable to locate asset totals for allocation %s", key)
-						return nil, fmt.Errorf("unable to locate allocation totals for allocation")
-
+						continue
 					}
 					}
 
 
 					parc.CPUTotalCost = totals.CPUCost
 					parc.CPUTotalCost = totals.CPUCost