mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
use source_project custom_virtualenv if configured
Signed-off-by: Bram Verschueren <verschueren.bram@gmail.com>
This commit is contained in:
@@ -1743,6 +1743,10 @@ class InventoryUpdate(UnifiedJob, InventorySourceOptions, JobNotificationMixin,
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def ansible_virtualenv_path(self):
|
def ansible_virtualenv_path(self):
|
||||||
|
if self.inventory_source and self.inventory_source.source_project:
|
||||||
|
project = self.inventory_source.source_project
|
||||||
|
if project and project.custom_virtualenv:
|
||||||
|
return project.custom_virtualenv
|
||||||
if self.inventory_source and self.inventory_source.inventory:
|
if self.inventory_source and self.inventory_source.inventory:
|
||||||
organization = self.inventory_source.inventory.organization
|
organization = self.inventory_source.inventory.organization
|
||||||
if organization and organization.custom_virtualenv:
|
if organization and organization.custom_virtualenv:
|
||||||
|
|||||||
Reference in New Issue
Block a user