Don't ignore ANSIBLE_NET env items when hiding sensitive information

This commit is contained in:
Matthew Jones 2017-01-05 12:35:25 -05:00
parent 5f0940e411
commit 89304b2ee0

View File

@ -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