mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 14:09:28 -02: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 (
|
for virtualenv in (
|
||||||
self.job_template.custom_virtualenv if self.job_template else None,
|
self.job_template.custom_virtualenv if self.job_template else None,
|
||||||
self.project.custom_virtualenv,
|
self.project.custom_virtualenv,
|
||||||
self.project.organization.custom_virtualenv
|
self.project.organization.custom_virtualenv if self.project.organization else None
|
||||||
):
|
):
|
||||||
if virtualenv:
|
if virtualenv:
|
||||||
return virtualenv
|
return virtualenv
|
||||||
|
|||||||
Reference in New Issue
Block a user