Skip to content

Commit

Permalink
Set distribution back.
Browse files Browse the repository at this point in the history
  • Loading branch information
myersCody committed May 10, 2024
1 parent 1d08f9c commit fffba63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion koku/cost_models/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit fffba63

Please sign in to comment.