From 3c1fdf712da380c99bf324f716b7172d9d12b54f Mon Sep 17 00:00:00 2001 From: Cody Myers Date: Thu, 21 Nov 2024 13:09:43 -0500 Subject: [PATCH] [COST-5637] Fix provider map infra calcuations for virtualization (#5391) --- koku/api/report/ocp/provider_map.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koku/api/report/ocp/provider_map.py b/koku/api/report/ocp/provider_map.py index 573bcfa38f..30531101a3 100644 --- a/koku/api/report/ocp/provider_map.py +++ b/koku/api/report/ocp/provider_map.py @@ -783,11 +783,11 @@ def __init__(self, provider, report_type, schema_name): "sup_markup": Sum(Value(0, output_field=DecimalField())), "sup_total": self.cost_model_supplementary_cost, "infra_raw": self.cloud_infrastructure_cost, - "infra_usage": self.cost_model_cost, + "infra_usage": self.cost_model_infrastructure_cost, "infra_markup": self.markup_cost, "infra_total": self.cloud_infrastructure_cost + self.markup_cost - + self.cost_model_cpu_infrastructure_cost, + + self.cost_model_infrastructure_cost, "cost_raw": self.cloud_infrastructure_cost, "cost_usage": self.cost_model_cost, "cost_markup": self.markup_cost, @@ -804,11 +804,11 @@ def __init__(self, provider, report_type, schema_name): "sup_markup": Sum(Value(0, output_field=DecimalField())), "sup_total": self.cost_model_supplementary_cost, "infra_raw": self.cloud_infrastructure_cost, - "infra_usage": self.cost_model_cost, + "infra_usage": self.cost_model_infrastructure_cost, "infra_markup": self.markup_cost, "infra_total": self.cloud_infrastructure_cost + self.markup_cost - + self.cost_model_cpu_infrastructure_cost, + + self.cost_model_infrastructure_cost, "cost_raw": self.cloud_infrastructure_cost, "cost_usage": self.cost_model_cost, "cost_markup": self.markup_cost,