mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
Filter out ANSIBLE_BASE_ from job env var (#15558)
This commit is contained in:
parent
486a1264d5
commit
48e3afbb00
@ -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():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user