Skip to content

Commit

Permalink
feat: modify linked_account condition
Browse files Browse the repository at this point in the history
Signed-off-by: ImMin5 <[email protected]>
  • Loading branch information
ImMin5 committed May 3, 2024
1 parent 5b677f5 commit 86ed5d7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/cloudforet/cost_analysis/manager/job_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ def get_tasks(
}
}
)
synced_accounts = self._extend_synced_accounts(
synced_accounts, divided_customer_tenant_info
)
if linked_accounts:
synced_accounts = self._extend_synced_accounts(
synced_accounts, divided_customer_tenant_info
)
changed.append({"start": start_month})
if first_sync_tenants:
first_sync_start_month = self._get_start_month(start=None)
Expand All @@ -97,9 +98,10 @@ def get_tasks(
"filter": {"additional_info.Tenant Id": tenant_id},
}
)
synced_accounts = self._extend_synced_accounts(
synced_accounts, first_sync_tenants
)
if linked_accounts:
synced_accounts = self._extend_synced_accounts(
synced_accounts, first_sync_tenants
)
else:
tasks = [
{
Expand Down

0 comments on commit 86ed5d7

Please sign in to comment.