Parcourir la source

remove incorrectly set clusterID

AjayTripathy il y a 6 ans
Parent
commit
7524bde532
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      costmodel/aggregations.go

+ 1 - 2
costmodel/aggregations.go

@@ -15,7 +15,7 @@ type Aggregation struct {
 	Aggregator        string    `json:"aggregation"`
 	Subfields         []string  `json:"subfields"`
 	Environment       string    `json:"environment"`
-	Cluster           string    `json:"cluster"`
+	Cluster           string    `json:"cluster,omitempty"`
 	CPUAllocation     []*Vector `json:"-"`
 	CPUCostVector     []*Vector `json:"cpuCostVector,omitempty"`
 	RAMAllocation     []*Vector `json:"-"`
@@ -204,7 +204,6 @@ func aggregateDatum(cp cloud.Provider, aggregations map[string]*Aggregation, cos
 		agg.Aggregator = field
 		agg.Subfields = subfields
 		agg.Environment = key
-		agg.Cluster = costDatum.ClusterID
 		aggregations[key] = agg
 	}