Explorar o código

Merge pull request #1025 from kubecost/sean/bugfix/small-issues

incorrect caller
Sean Holcomb %!s(int64=4) %!d(string=hai) anos
pai
achega
d2ea7c577c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pkg/kubecost/allocation.go

+ 1 - 1
pkg/kubecost/allocation.go

@@ -687,7 +687,7 @@ func (a *Allocation) add(that *Allocation) {
 	// in the case of keys matching but controllers not matching.
 	// in the case of keys matching but controllers not matching.
 	aggByForKey := []string{"cluster", "node", "namespace", "pod", "container"}
 	aggByForKey := []string{"cluster", "node", "namespace", "pod", "container"}
 	leftKey := a.generateKey(aggByForKey, nil)
 	leftKey := a.generateKey(aggByForKey, nil)
-	rightKey := a.generateKey(aggByForKey, nil)
+	rightKey := that.generateKey(aggByForKey, nil)
 	leftProperties := a.Properties
 	leftProperties := a.Properties
 	rightProperties := that.Properties
 	rightProperties := that.Properties