changes `changed` to `modified` in save_when choices (#26801)

pull/26810/head
Peter Sprygada 7 years ago committed by Ricardo Carrillo Cruz
parent 3bbb32cac5
commit b9a1998af5

@ -174,15 +174,15 @@ options:
changes are not copied to non-volatile storage by default. Using
this argument will change that before. If the argument is set to
I(always), then the running-config will always be copied to the
startup-config and the I(changed) flag will always be set to
True. If the argument is set to I(changed), then the running-config
startup-config and the I(modified) flag will always be set to
True. If the argument is set to I(modified), then the running-config
will only be copied to the startup-config if it has changed since
the last save to startup-config. If the argument is set to
I(never), the running-config will never be copied to the the
startup-config
required: false
default: never
choices: ['always', 'never', 'changed']
choices: ['always', 'never', 'modified']
version_added: "2.4"
diff_against:
description:
@ -255,9 +255,9 @@ EXAMPLES = """
diff_ignore_lines:
- ntp clock .*
- name: save running to startup when changed
- name: save running to startup when modified
ios_config:
save_when: changed
save_when: modified
"""
RETURN = """
@ -386,7 +386,7 @@ def main():
defaults=dict(type='bool', default=False),
backup=dict(type='bool', default=False),
save_when=dict(choices=['always', 'never', 'changed'], default='never'),
save_when=dict(choices=['always', 'never', 'modified'], default='never'),
diff_against=dict(choices=['startup', 'intended', 'running']),
diff_ignore_lines=dict(type='list'),

@ -170,15 +170,15 @@ options:
changes are not copied to non-volatile storage by default. Using
this argument will change that before. If the argument is set to
I(always), then the running-config will always be copied to the
startup-config and the I(changed) flag will always be set to
True. If the argument is set to I(changed), then the running-config
startup-config and the I(modified) flag will always be set to
True. If the argument is set to I(modified), then the running-config
will only be copied to the startup-config if it has changed since
the last save to startup-config. If the argument is set to
I(never), the running-config will never be copied to the the
startup-config
required: false
default: never
choices: ['always', 'never', 'changed']
choices: ['always', 'never', 'modified']
version_added: "2.4"
diff_against:
description:
@ -222,7 +222,7 @@ EXAMPLES = """
- name: configure top level configuration and save it
nxos_config:
lines: hostname {{ inventory_hostname }}
save_when: changed
save_when: modified
- name: diff the running-config against a provided config
nxos_config:
@ -317,7 +317,7 @@ def main():
defaults=dict(type='bool', default=False),
backup=dict(type='bool', default=False),
save_when=dict(choices=['always', 'never', 'changed'], default='never'),
save_when=dict(choices=['always', 'never', 'modified'], default='never'),
diff_against=dict(choices=['running', 'startup', 'intended']),
diff_ignore_lines=dict(type='list'),

Loading…
Cancel
Save