mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Skip sliced jobs from the workflow EE logic
This commit is contained in:
parent
30b7535ca2
commit
efcbea1fc5
@ -474,7 +474,8 @@ class ExecutionEnvironmentMixin(models.Model):
|
||||
wf_node = getattr(self, 'unified_job_node', None)
|
||||
while wf_node is not None:
|
||||
wf_template = wf_node.workflow_job.workflow_job_template
|
||||
if wf_template.execution_environment is not None:
|
||||
# NOTE: sliced workflow_jobs have a null workflow_job_template
|
||||
if wf_template and wf_template.execution_environment is not None:
|
||||
return wf_template.execution_environment
|
||||
wf_node = getattr(wf_node.workflow_job, 'unified_job_node', None)
|
||||
if getattr(self, 'project', None) and self.project.default_environment is not None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user