Redact env vars for Galaxy token or password

This commit is contained in:
AlanCoding
2019-10-02 11:46:47 -04:00
parent 576ff1007e
commit 85c99cc38a
2 changed files with 3 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ def build_safe_env(env):
for k, v in safe_env.items():
if k == 'AWS_ACCESS_KEY_ID':
continue
elif k.startswith('ANSIBLE_') and not k.startswith('ANSIBLE_NET'):
elif k.startswith('ANSIBLE_') and not k.startswith('ANSIBLE_NET') and not k.startswith('ANSIBLE_GALAXY_SERVER'):
continue
elif hidden_re.search(k):
safe_env[k] = HIDDEN_PASSWORD