Skip to content

Commit

Permalink
chore: remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMin5 committed May 14, 2024
1 parent 07b4f9f commit e2ba7b8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/spaceone/cost_analysis/manager/data_source_rule_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,20 +157,14 @@ def _change_cost_data_with_actions(
target_value = utils.get_dict_value(cost_data, source)
all_workspaces = value.get("all_workspaces", False)

_LOGGER.debug(
[source, target_key, target_value, all_workspaces]
) # todo: remove

if all_workspaces:
workspace_id = None

if target_value:
service_account_info = self._get_service_account(
target_key, target_value, domain_id, workspace_id
)
_LOGGER.debug(
f"service_account_info: {service_account_info}"
) # todo: remove

if service_account_info:
cost_data["service_account_id"] = service_account_info[
"service_account_id"
Expand All @@ -180,6 +174,10 @@ def _change_cost_data_with_actions(
cost_data["workspace_id"] = service_account_info.get(
"workspace_id"
)
elif all_workspaces:
cost_data["workspace_id"] = service_account_info.get(
"workspace_id"
)

if action == "add_additional_info" and value:
cost_data["additional_info"] = cost_data.get("additional_info", {})
Expand Down

0 comments on commit e2ba7b8

Please sign in to comment.