Skip to content

Commit

Permalink
fix: fix is_failed
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMin5 committed Dec 20, 2023
1 parent d5312e6 commit bb4b65d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spaceone/cost_analysis/service/job_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def _create_cost_data(self, cost_data, job_task_vo, cost_options):
def _is_job_failed(self, job_id, domain_id):
job_vo: Job = self.job_mgr.get_job(job_id, domain_id)

if ["CANCELED", "FAILURE"] in job_vo.status:
if job_vo.status in ["CANCELED", "FAILURE"]:
return True
else:
return False
Expand Down

0 comments on commit bb4b65d

Please sign in to comment.