mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 02:47:36 -02:30
Don't ignore ANSIBLE_NET env items when hiding sensitive information
This commit is contained in:
@@ -459,7 +459,7 @@ class BaseTask(Task):
|
|||||||
for k,v in env.items():
|
for k,v in env.items():
|
||||||
if k in ('REST_API_URL', 'AWS_ACCESS_KEY', 'AWS_ACCESS_KEY_ID'):
|
if k in ('REST_API_URL', 'AWS_ACCESS_KEY', 'AWS_ACCESS_KEY_ID'):
|
||||||
continue
|
continue
|
||||||
elif k.startswith('ANSIBLE_'):
|
elif k.startswith('ANSIBLE_') and not k.startswith('ANSIBLE_NET'):
|
||||||
continue
|
continue
|
||||||
elif hidden_re.search(k):
|
elif hidden_re.search(k):
|
||||||
env[k] = HIDDEN_PASSWORD
|
env[k] = HIDDEN_PASSWORD
|
||||||
|
|||||||
Reference in New Issue
Block a user