From fffba63279ccce0c0857d07b2ae91bc1fe726b6b Mon Sep 17 00:00:00 2001 From: myersCody Date: Fri, 10 May 2024 00:06:03 -0400 Subject: [PATCH] Set distribution back. --- koku/cost_models/serializers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koku/cost_models/serializers.py b/koku/cost_models/serializers.py index beaf74e3c7..0519a30171 100644 --- a/koku/cost_models/serializers.py +++ b/koku/cost_models/serializers.py @@ -476,7 +476,11 @@ def validate(self, data): data["currency"] = get_currency(self.context.get("request")) if not data.get("distribution_info"): - data["distribution_info"] = metric_constants.DEFAULT_DISTRIBUTION_INFO + # TODO: Have this return just the default distribution info after + # QE updates tests. + distribution_info = metric_constants.DEFAULT_DISTRIBUTION_INFO + distribution_info["distribution_type"] = data.get("distribution", metric_constants.CPU_DISTRIBUTION) + data["distribution_info"] = distribution_info if ( data.get("markup") and not data.get("rates")