From ded4e6ac0f350f2c8de9f801fc1905726c736a94 Mon Sep 17 00:00:00 2001 From: James Mighion Date: Tue, 19 Dec 2017 10:04:21 -0800 Subject: [PATCH] Ios config save (#33885) * Fixing save so it still works. Adding changed as an option for save_when. * Updating description to state that changed was added in 2.5. * Fixing removal version for deprecated options. --- lib/ansible/modules/network/ios/ios_config.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/network/ios/ios_config.py b/lib/ansible/modules/network/ios/ios_config.py index 2e2dd7f742..225a3bab3f 100644 --- a/lib/ansible/modules/network/ios/ios_config.py +++ b/lib/ansible/modules/network/ios/ios_config.py @@ -122,7 +122,7 @@ options: without first checking if already configured. - Note this argument should be considered deprecated. To achieve the equivalent, set the C(match=none) which is idempotent. This argument - will be removed in a future release. + will be removed in Ansible 2.7. required: false default: false type: bool @@ -165,7 +165,8 @@ options: - The C(save) argument instructs the module to save the running- config to the startup-config at the conclusion of the module running. If check mode is specified, this argument is ignored. - - This option is deprecated as of Ansible 2.4, use C(save_when) + - This option is deprecated as of Ansible 2.4 and will be removed + in Ansible 2.8, use C(save_when) instead. required: false default: false type: bool @@ -406,10 +407,10 @@ def main(): diff_ignore_lines=dict(type='list'), # save is deprecated as of ans2.4, use save_when instead - save=dict(default=False, type='bool', removed_in_version='2.4'), + save=dict(default=False, type='bool', removed_in_version='2.8'), # force argument deprecated in ans2.2 - force=dict(default=False, type='bool', removed_in_version='2.2') + force=dict(default=False, type='bool', removed_in_version='2.7') ) argument_spec.update(ios_argument_spec)