From 89304b2ee0a98db9a670c5da802111297ad3a1f4 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Thu, 5 Jan 2017 12:35:25 -0500 Subject: [PATCH] Don't ignore ANSIBLE_NET env items when hiding sensitive information --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 02af9239d9..0f47d080bb 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -459,7 +459,7 @@ class BaseTask(Task): for k,v in env.items(): if k in ('REST_API_URL', 'AWS_ACCESS_KEY', 'AWS_ACCESS_KEY_ID'): continue - elif k.startswith('ANSIBLE_'): + elif k.startswith('ANSIBLE_') and not k.startswith('ANSIBLE_NET'): continue elif hidden_re.search(k): env[k] = HIDDEN_PASSWORD