rename arugment from default to defaults

This argument_spec incorrectly named an argument default and it should have
been defaults.  This corrects that issue
reviewable/pr18780/r1
Peter Sprygada 8 years ago
parent 987d9b2b4a
commit 1b8cf3bbd9

@ -131,7 +131,7 @@ options:
required: false required: false
default: null default: null
version_added: "2.2" version_added: "2.2"
default: defaults:
description: description:
- This argument specifies whether or not to collect all defaults - This argument specifies whether or not to collect all defaults
when getting the remote device running config. When enabled, when getting the remote device running config. When enabled,
@ -140,6 +140,7 @@ options:
required: false required: false
default: no default: no
choices: ['yes', 'no'] choices: ['yes', 'no']
aliases: ['detail']
version_added: "2.2" version_added: "2.2"
save: save:
description: description:
@ -219,7 +220,8 @@ def sanitize_config(lines):
def get_config(module, result): def get_config(module, result):
contents = module.params['config'] contents = module.params['config']
if not contents: if not contents:
contents = module.config.get_config() defaults = module.params['defaults']
contents = module.config.get_config(detail=defaults)
return NetworkConfig(device_os='sros', contents=contents) return NetworkConfig(device_os='sros', contents=contents)
def get_candidate(module): def get_candidate(module):
@ -278,7 +280,7 @@ def main():
match=dict(default='line', choices=['line', 'none']), match=dict(default='line', choices=['line', 'none']),
config=dict(), config=dict(),
default=dict(type='bool', default=False), defaults=dict(type='bool', default=False, aliases=['detail']),
backup=dict(type='bool', default=False), backup=dict(type='bool', default=False),
save=dict(type='bool', default=False), save=dict(type='bool', default=False),

Loading…
Cancel
Save