From 12cbc9756ba902dfb28c87a24e76ff17c54017c8 Mon Sep 17 00:00:00 2001 From: Jim Ladd Date: Mon, 2 Nov 2020 17:37:18 -0800 Subject: [PATCH] inventory updates should use custom venv --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index a810ad7d00..f0db77a2e6 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -2503,7 +2503,7 @@ class RunInventoryUpdate(BaseTask): private_data_files=private_data_files) if private_data_files is None: private_data_files = {} - self.add_ansible_venv(settings.ANSIBLE_VENV_PATH, env) + self.add_ansible_venv(inventory_update.ansible_virtualenv_path, env, isolated=isolated) # Legacy environment variables, were used as signal to awx-manage command # now they are provided in case some scripts may be relying on them