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
|
||||
|
||||
if module.params['backup']:
|
||||
result['__backup__'] = get_config(module)
|
||||
if not module.check_mode:
|
||||
result['__backup__'] = get_config(module)
|
||||
|
||||
commands = list()
|
||||
|
||||
|
|
|
@ -254,7 +254,8 @@ def main():
|
|||
else:
|
||||
configobjs = candidate.items
|
||||
if module.params['backup']:
|
||||
result['__backup__'] = get_config(module)
|
||||
if not module.check_mode:
|
||||
result['__backup__'] = get_config(module)
|
||||
|
||||
commands = list()
|
||||
|
||||
|
|
|
@ -265,7 +265,8 @@ def main():
|
|||
configobjs = candidate.items
|
||||
|
||||
if module.params['backup']:
|
||||
result['__backup__'] = get_config(module)
|
||||
if not module.check_mode:
|
||||
result['__backup__'] = get_config(module)
|
||||
|
||||
commands = list()
|
||||
|
||||
|
|
Loading…
Reference in a new issue