From b1243feac801c99c940ccb3d64d255d469827048 Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Wed, 14 Sep 2016 07:36:23 -0400 Subject: [PATCH] rename arugment from default to defaults This argument_spec incorrectly named an argument default and it should have been defaults. This corrects that issue --- lib/ansible/modules/network/sros/sros_config.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/network/sros/sros_config.py b/lib/ansible/modules/network/sros/sros_config.py index 1ebc229773..186c7215e4 100644 --- a/lib/ansible/modules/network/sros/sros_config.py +++ b/lib/ansible/modules/network/sros/sros_config.py @@ -131,7 +131,7 @@ options: required: false default: null version_added: "2.2" - default: + defaults: description: - This argument specifies whether or not to collect all defaults when getting the remote device running config. When enabled, @@ -140,6 +140,7 @@ options: required: false default: no choices: ['yes', 'no'] + aliases: ['detail'] version_added: "2.2" save: description: @@ -219,7 +220,8 @@ def sanitize_config(lines): def get_config(module, result): contents = module.params['config'] 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) def get_candidate(module): @@ -278,7 +280,7 @@ def main(): match=dict(default='line', choices=['line', 'none']), config=dict(), - default=dict(type='bool', default=False), + defaults=dict(type='bool', default=False, aliases=['detail']), backup=dict(type='bool', default=False), save=dict(type='bool', default=False),