mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -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:
parent
2d9c4cff32
commit
c98ede2f27
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user