Skip to content

Commit

Permalink
Merge pull request #159 from ImMin5/feature-cost-report
Browse files Browse the repository at this point in the history
Modify send cost report email condition
  • Loading branch information
ImMin5 authored Jan 25, 2024
2 parents 3fc31a6 + 8ae0eb4 commit ca4d69e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/spaceone/cost_analysis/service/cost_report_serivce.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,6 @@ def _delete_old_cost_reports(self, report_month: str, domain_id: str) -> None:
cost_reports_vos.delete()

def send_cost_report(self, cost_report_vo: CostReport) -> None:
issue_date = cost_report_vo.issue_date
if issue_date != datetime.utcnow().strftime("%Y-%m-%d"):
_LOGGER.debug(
f"[send_cost_report] skip send cost report ({cost_report_vo.workspace_id}/{cost_report_vo.cost_report_id})"
)
return
domain_id = cost_report_vo.domain_id
workspace_id = cost_report_vo.workspace_id

Expand Down

0 comments on commit ca4d69e

Please sign in to comment.