mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 16:28:43 -03:30
fix a bug in custom virtualenv when Project.organization is None
see: https://github.com/ansible/tower/issues/1490
This commit is contained in:
@@ -538,7 +538,7 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin, TaskMana
|
||||
for virtualenv in (
|
||||
self.job_template.custom_virtualenv if self.job_template else None,
|
||||
self.project.custom_virtualenv,
|
||||
self.project.organization.custom_virtualenv
|
||||
self.project.organization.custom_virtualenv if self.project.organization else None
|
||||
):
|
||||
if virtualenv:
|
||||
return virtualenv
|
||||
|
||||
Reference in New Issue
Block a user