From 1b8cf3bbd9dbccbb77a5db61ef5988deb96758d5 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 --- network/sros/sros_config.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/network/sros/sros_config.py b/network/sros/sros_config.py index 2ac47b83074..30bb0ae1bd3 100644 --- a/network/sros/sros_config.py +++ b/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),