Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
Ios config save (ansible#33885)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
jmighion authored and gundalow committed Dec 19, 2017
1 parent 73a003a commit ded4e6a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/ansible/modules/network/ios/ios_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
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
Expand Down Expand Up @@ -165,7 +165,8 @@
- 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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ded4e6a

Please sign in to comment.