File tree 1 file changed +2
-2
lines changed
src/spaceone/cost_analysis/service
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -634,7 +634,7 @@ def _close_job(
634
634
raise e
635
635
636
636
try :
637
- self ._delete_old_cost_data (domain_id , data_source_id )
637
+ self ._delete_old_cost_data (data_source_id , domain_id )
638
638
except Exception as e :
639
639
_LOGGER .error (
640
640
f"[_close_job] delete old cost data error: { e } " , exc_info = True
@@ -720,7 +720,7 @@ def _update_last_sync_time(self, job_vo: Job):
720
720
{"last_synchronized_at" : job_vo .created_at }, data_source_vo
721
721
)
722
722
723
- def _delete_old_cost_data (self , data_source_id , domain_id ):
723
+ def _delete_old_cost_data (self , data_source_id : str , domain_id : str ):
724
724
now = datetime .utcnow ().date ()
725
725
old_billed_month = (now - relativedelta (months = 12 )).strftime ("%Y-%m" )
726
726
old_billed_year = (now - relativedelta (months = 36 )).strftime ("%Y" )
You can’t perform that action at this time.
0 commit comments