rename arugment from default to defaults
This argument_spec incorrectly named an argument default and it should have been defaults. This corrects that issue
This commit is contained in:
parent
4327e67a7e
commit
b1243feac8
1 changed files with 5 additions and 3 deletions
|
@ -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…
Reference in a new issue