From 4327e67a7efdbe06332d7bc24a96834f73903df6 Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Wed, 14 Sep 2016 07:34:55 -0400 Subject: [PATCH] rename the argument default to defaults The argument_spec incorrectly had the argument default and it should have been defaults. This corrects the problem. --- lib/ansible/modules/network/ios/ios_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/network/ios/ios_config.py b/lib/ansible/modules/network/ios/ios_config.py index aa67959998c..ec6dedc0462 100644 --- a/lib/ansible/modules/network/ios/ios_config.py +++ b/lib/ansible/modules/network/ios/ios_config.py @@ -142,7 +142,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, @@ -229,7 +229,7 @@ def check_args(module, warnings): def get_config(module, result): contents = module.params['config'] if not contents: - defaults = module.params['default'] + defaults = module.params['defaults'] contents = module.config.get_config(include_defaults=defaults) return NetworkConfig(indent=1, contents=contents) @@ -320,7 +320,7 @@ def main(): force=dict(default=False, type='bool'), config=dict(), - default=dict(type='bool', default=False), + defaults=dict(type='bool', default=False), backup=dict(type='bool', default=False), save=dict(default=False, type='bool'),