mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07:00
Config_module_changes (#30507)
This commit is contained in:
parent
1e46e65103
commit
0c75f00248
3 changed files with 6 additions and 3 deletions
|
@ -259,7 +259,8 @@ def main():
|
||||||
configobjs = candidate.items
|
configobjs = candidate.items
|
||||||
|
|
||||||
if module.params['backup']:
|
if module.params['backup']:
|
||||||
result['__backup__'] = get_config(module)
|
if not module.check_mode:
|
||||||
|
result['__backup__'] = get_config(module)
|
||||||
|
|
||||||
commands = list()
|
commands = list()
|
||||||
|
|
||||||
|
|
|
@ -254,7 +254,8 @@ def main():
|
||||||
else:
|
else:
|
||||||
configobjs = candidate.items
|
configobjs = candidate.items
|
||||||
if module.params['backup']:
|
if module.params['backup']:
|
||||||
result['__backup__'] = get_config(module)
|
if not module.check_mode:
|
||||||
|
result['__backup__'] = get_config(module)
|
||||||
|
|
||||||
commands = list()
|
commands = list()
|
||||||
|
|
||||||
|
|
|
@ -265,7 +265,8 @@ def main():
|
||||||
configobjs = candidate.items
|
configobjs = candidate.items
|
||||||
|
|
||||||
if module.params['backup']:
|
if module.params['backup']:
|
||||||
result['__backup__'] = get_config(module)
|
if not module.check_mode:
|
||||||
|
result['__backup__'] = get_config(module)
|
||||||
|
|
||||||
commands = list()
|
commands = list()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue