mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add no_log to all network module_utils provider argument (#22566)
The provider argument on the network modules argspec can contain credentials. Make sure we don't log it. Fixes #21892
This commit is contained in:
parent
b15ceee6bd
commit
2553a37da5
5 changed files with 5 additions and 5 deletions
|
@ -54,7 +54,7 @@ eos_argument_spec = {
|
|||
'validate_certs': dict(type='bool'),
|
||||
'timeout': dict(type='int'),
|
||||
|
||||
'provider': dict(type='dict'),
|
||||
'provider': dict(type='dict', no_log=True),
|
||||
'transport': dict(choices=['cli', 'eapi'])
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ ios_argument_spec = {
|
|||
'authorize': dict(fallback=(env_fallback, ['ANSIBLE_NET_AUTHORIZE']), type='bool'),
|
||||
'auth_pass': dict(fallback=(env_fallback, ['ANSIBLE_NET_AUTH_PASS']), no_log=True),
|
||||
'timeout': dict(type='int'),
|
||||
'provider': dict(type='dict'),
|
||||
'provider': dict(type='dict', no_log=True),
|
||||
}
|
||||
|
||||
def check_args(module, warnings):
|
||||
|
|
|
@ -38,7 +38,7 @@ junos_argument_spec = {
|
|||
'password': dict(fallback=(env_fallback, ['ANSIBLE_NET_PASSWORD']), no_log=True),
|
||||
'ssh_keyfile': dict(fallback=(env_fallback, ['ANSIBLE_NET_SSH_KEYFILE']), type='path'),
|
||||
'timeout': dict(type='int', default=10),
|
||||
'provider': dict(type='dict'),
|
||||
'provider': dict(type='dict', no_log=True),
|
||||
'transport': dict()
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ NET_TRANSPORT_ARGS = dict(
|
|||
authorize=dict(default=False, fallback=(env_fallback, ['ANSIBLE_NET_AUTHORIZE']), type='bool'),
|
||||
auth_pass=dict(no_log=True, fallback=(env_fallback, ['ANSIBLE_NET_AUTH_PASS'])),
|
||||
|
||||
provider=dict(type='dict'),
|
||||
provider=dict(type='dict', no_log=True),
|
||||
transport=dict(choices=list()),
|
||||
|
||||
timeout=dict(default=10, type='int')
|
||||
|
|
|
@ -50,7 +50,7 @@ nxos_argument_spec = {
|
|||
'validate_certs': dict(type='bool'),
|
||||
'timeout': dict(type='int'),
|
||||
|
||||
'provider': dict(type='dict'),
|
||||
'provider': dict(type='dict', no_log=True),
|
||||
'transport': dict(choices=['cli', 'nxapi'])
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue