Skip to content

Commit

Permalink
Changed Unmanage flow - incorporated review changes
Browse files Browse the repository at this point in the history
tendrl-bug-id: #841
bugzilla: 1583590
Signed-off-by: Anmol Sachan <anmol13694@gmail.com>
  • Loading branch information
anmolsachan committed May 31, 2018
1 parent 280cef2 commit 22786c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tendrl/commons/flows/unmanage_cluster/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def run(self):
time.sleep(5)
finished = True
job = NS.tendrl.objects.Job(job_id=_job_id).load()
if job.status != "finished":
if job.status not in ['finished', 'failed']:
finished = False
if finished:
break
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def run(self):
child_job = NS.tendrl.objects.Job(
job_id=child_job_id
).load()
if child_job.status != "finished":
if child_job.status not in ['finished', 'failed']:
finished = False
break
if finished:
Expand Down

0 comments on commit 22786c4

Please sign in to comment.