From bb4b65dfc0b82785e2453524719b12e3c4db1ee3 Mon Sep 17 00:00:00 2001 From: ImMin5 Date: Thu, 21 Dec 2023 06:29:29 +0900 Subject: [PATCH] fix: fix is_failed --- src/spaceone/cost_analysis/service/job_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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