Browse Source

missing logical not

Sean Holcomb 5 năm trước cách đây
mục cha
commit
913f2543d4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      pkg/kubecost/allocation.go

+ 1 - 1
pkg/kubecost/allocation.go

@@ -1525,7 +1525,7 @@ func (as *AllocationSet) ReconcileAllocations(assetSet *AssetSet) error {
 
 
 		// Reconcile with node Assets
 		// Reconcile with node Assets
 		node, ok := nodeByProviderID[providerId]
 		node, ok := nodeByProviderID[providerId]
-		if ok {
+		if !ok {
 			// Failed to find node for allocation
 			// Failed to find node for allocation
 			return
 			return
 		}
 		}