Skip to content

Commit

Permalink
Merge pull request #96 from ImMin5/master
Browse files Browse the repository at this point in the history
Set network traffic None type iterable error
  • Loading branch information
ImMin5 authored Sep 2, 2024
2 parents c9f615e + 7660902 commit a201bbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cloudforet/cost_analysis/manager/cost_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,8 +795,8 @@ def _exclude_cost_data_with_options(result: dict, options: dict) -> bool:
def _set_network_traffic_cost(
additional_info: dict, result: dict, usage_type: str
) -> dict:
meter_category = result.get("metercategory", "")
meter_name = result.get("metername", "")
meter_category = result.get("metercategory", "") or ""
meter_name = result.get("metername", "") or ""
result_additional_info = result.get("additional_info", {}) or {}
data_transfer_direction = result_additional_info.get("DataTransferDirection")

Expand Down

0 comments on commit a201bbd

Please sign in to comment.