diff --git a/src/spaceone/cost_analysis/service/job_service.py b/src/spaceone/cost_analysis/service/job_service.py index 7eb1ed81..9849471a 100644 --- a/src/spaceone/cost_analysis/service/job_service.py +++ b/src/spaceone/cost_analysis/service/job_service.py @@ -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