summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHao Liu <44379968+TheRealHaoLiu@users.noreply.github.com>2024-09-30 15:50:04 +0200
committerGitHub <noreply@github.com>2024-09-30 15:50:04 +0200
commit48e3afbb00f52105d2b1bd00042ee7e55d057c8a (patch)
tree3898149c923e6000ccf951e958173420a59453bd
parentRemoved docs associated with OIDC auth (#15557) (diff)
downloadawx-48e3afbb00f52105d2b1bd00042ee7e55d057c8a.tar.xz
awx-48e3afbb00f52105d2b1bd00042ee7e55d057c8a.zip
Filter out ANSIBLE_BASE_ from job env var (#15558)
-rw-r--r--awx/main/tasks/jobs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/awx/main/tasks/jobs.py b/awx/main/tasks/jobs.py
index 0a9e7f5975..c6cfc6a180 100644
--- a/awx/main/tasks/jobs.py
+++ b/awx/main/tasks/jobs.py
@@ -299,7 +299,7 @@ class BaseTask(object):
env = {}
# Add ANSIBLE_* settings to the subprocess environment.
for attr in dir(settings):
- if attr == attr.upper() and attr.startswith('ANSIBLE_'):
+ if attr == attr.upper() and attr.startswith('ANSIBLE_') and not attr.startswith('ANSIBLE_BASE_'):
env[attr] = str(getattr(settings, attr))
# Also set environment variables configured in AWX_TASK_ENV setting.
for key, value in settings.AWX_TASK_ENV.items():