mirror of
https://github.com/ansible/awx.git
synced 2026-03-25 21:05:03 -02:30
code cleanup
This commit is contained in:
@@ -133,11 +133,9 @@ class WorkflowDAG(SimpleDAG):
|
|||||||
nodes.extend(children_all)
|
nodes.extend(children_all)
|
||||||
elif job and job.status == 'failed':
|
elif job and job.status == 'failed':
|
||||||
children_failed = self.get_dependencies(obj, 'success_nodes')
|
children_failed = self.get_dependencies(obj, 'success_nodes')
|
||||||
children_all = children_failed
|
nodes.extend(children_failed)
|
||||||
nodes.extend(children_all)
|
|
||||||
elif job and job.status == 'successful':
|
elif job and job.status == 'successful':
|
||||||
children_success = self.get_dependencies(obj, 'failure_nodes')
|
children_success = self.get_dependencies(obj, 'failure_nodes')
|
||||||
children_all = children_success
|
nodes.extend(children_success)
|
||||||
nodes.extend(children_all)
|
|
||||||
return [n['node_object'] for n in nodes_marked_do_not_run]
|
return [n['node_object'] for n in nodes_marked_do_not_run]
|
||||||
|
|
||||||
|
|||||||
@@ -102,8 +102,6 @@ class TestWorkflowDAGFunctional(TransactionTestCase):
|
|||||||
|
|
||||||
@pytest.mark.django_db
|
@pytest.mark.django_db
|
||||||
class TestWorkflowDNR():
|
class TestWorkflowDNR():
|
||||||
'success', 'new'
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def workflow_job_fn(self):
|
def workflow_job_fn(self):
|
||||||
def fn(states=['new', 'new', 'new', 'new', 'new', 'new']):
|
def fn(states=['new', 'new', 'new', 'new', 'new', 'new']):
|
||||||
|
|||||||
Reference in New Issue
Block a user