Ver Fonte

missing logical not

Sean Holcomb há 5 anos atrás
pai
commit
913f2543d4
1 ficheiros alterados com 1 adições e 1 exclusões
  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
 		}
 		}