mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 15:02:07 -03:30
Do not apply ANSIBLE_STANDARD_SETTINGS_FILES to job environment variables (#15962)
This commit is contained in:
parent
d005402205
commit
c975b1aa22
@ -319,6 +319,8 @@ class BaseTask(object):
|
|||||||
# Add ANSIBLE_* settings to the subprocess environment.
|
# Add ANSIBLE_* settings to the subprocess environment.
|
||||||
for attr in dir(settings):
|
for attr in dir(settings):
|
||||||
if attr == attr.upper() and attr.startswith('ANSIBLE_') and not attr.startswith('ANSIBLE_BASE_'):
|
if attr == attr.upper() and attr.startswith('ANSIBLE_') and not attr.startswith('ANSIBLE_BASE_'):
|
||||||
|
if attr == 'ANSIBLE_STANDARD_SETTINGS_FILES':
|
||||||
|
continue # special case intended only for dynaconf use
|
||||||
env[attr] = str(getattr(settings, attr))
|
env[attr] = str(getattr(settings, attr))
|
||||||
# Also set environment variables configured in AWX_TASK_ENV setting.
|
# Also set environment variables configured in AWX_TASK_ENV setting.
|
||||||
for key, value in settings.AWX_TASK_ENV.items():
|
for key, value in settings.AWX_TASK_ENV.items():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user