diff options
author | Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> | 2024-09-30 15:50:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-30 15:50:04 +0200 |
commit | 48e3afbb00f52105d2b1bd00042ee7e55d057c8a (patch) | |
tree | 3898149c923e6000ccf951e958173420a59453bd | |
parent | Removed docs associated with OIDC auth (#15557) (diff) | |
download | awx-48e3afbb00f52105d2b1bd00042ee7e55d057c8a.tar.xz awx-48e3afbb00f52105d2b1bd00042ee7e55d057c8a.zip |
Filter out ANSIBLE_BASE_ from job env var (#15558)
-rw-r--r-- | awx/main/tasks/jobs.py | 2 |
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(): |