Skip to content

Commit 057186f

Browse files
committed
fix: fix data field of CostResponse type convert error
Signed-off-by: ImMin5 <[email protected]>
1 parent ef95dfc commit 057186f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/cloudforet/cost_analysis/manager/cost_manager.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def _make_data_info(
319319
options: dict,
320320
tenant_id: str = None,
321321
agreement_type: str = None,
322-
):
322+
) -> dict:
323323
additional_info: dict = self._get_additional_info(result, options, tenant_id)
324324
cost: float = self._get_cost_from_result_with_options(result, options)
325325
usage_quantity: float = self._convert_str_to_float_format(
@@ -331,7 +331,9 @@ def _make_data_info(
331331
product: str = self._get_product_from_result(result)
332332
tags: dict = self._convert_tags_str_to_dict(result.get("tags"))
333333

334-
aggregate_data = self._get_aggregate_data(result, options, additional_info)
334+
aggregate_data, additional_info = self._get_aggregate_data(
335+
result, options, additional_info
336+
)
335337

336338
# Set Network Traffic Cost at Additional Info
337339
additional_info: dict = self._set_network_traffic_cost(

0 commit comments

Comments
 (0)