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