From 0ac7d10ed571fc0228eca072f2ebc199ffa197c9 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Tue, 3 Mar 2020 16:42:17 -0500 Subject: [PATCH] respect symlinks the inventory import venv_path --- awx/main/management/commands/inventory_import.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/main/management/commands/inventory_import.py b/awx/main/management/commands/inventory_import.py index c5cb9d5181e1..ea6382ae1bb2 100644 --- a/awx/main/management/commands/inventory_import.py +++ b/awx/main/management/commands/inventory_import.py @@ -88,6 +88,7 @@ def __init__(self, source, is_custom=False, venv_path=None, verbosity=0): self.venv_path = venv_path else: self.venv_path = settings.ANSIBLE_VENV_PATH + self.venv_path = os.path.realpath(self.venv_path) def build_env(self): env = dict(os.environ.items())