update mask_passwords argument to be more descriptive in asa_config (#3109)

This changes the passwords argument to mask_passwords to make the
argument more descriptive of its intended function
pull/18777/head
Peter Sprygada 8 years ago committed by Matt Clay
parent 9518290454
commit 1b6a424375

@ -146,14 +146,14 @@ options:
required: false required: false
default: no default: no
choices: ['yes', 'no'] choices: ['yes', 'no']
passwords: mask_passwords:
description: description:
- This argument specifies to include passwords in the config - This argument specifies to include passwords in the config
when retrieving the running-config from the remote device. This when retrieving the running-config from the remote device. This
includes passwords related to VPN endpoints. This argument is includes passwords related to VPN endpoints. This argument is
mutually exclusive with I(defaults). mutually exclusive with I(defaults).
required: false required: true
default: no default: true
choices: ['yes', 'no'] choices: ['yes', 'no']
save: save:
description: description:
@ -235,9 +235,9 @@ from ansible.module_utils.netcfg import NetworkConfig, dumps
def get_config(module): def get_config(module):
contents = module.params['config'] contents = module.params['config']
if not contents: if not contents:
if module.params['defaults']: if module.params['defaults'] is True:
include = 'defaults' include = 'defaults'
elif module.params['passwords']: elif module.params['mask_passwords'] is False:
include = 'passwords' include = 'passwords'
else: else:
include = None include = None
@ -307,13 +307,13 @@ def main():
config=dict(), config=dict(),
defaults=dict(type='bool', default=False), defaults=dict(type='bool', default=False),
passwords=dict(type='bool', default=False), mask_passwords=dict(type='bool', default=True),
backup=dict(type='bool', default=False), backup=dict(type='bool', default=False),
save=dict(type='bool', default=False), save=dict(type='bool', default=False),
) )
mutually_exclusive = [('lines', 'src'), ('defaults', 'passwords')] mutually_exclusive = [('lines', 'src'), ('defaults', 'mask_passwords')]
required_if = [('match', 'strict', ['lines']), required_if = [('match', 'strict', ['lines']),
('match', 'exact', ['lines']), ('match', 'exact', ['lines']),

Loading…
Cancel
Save