mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 11:10:21 -07:00
Fix nxos_snapshot compare (#41386)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
63ae1a9acd
commit
1998707eda
1 changed files with 3 additions and 1 deletions
|
@ -356,7 +356,9 @@ def main():
|
||||||
snapshot1 = module.params['snapshot1']
|
snapshot1 = module.params['snapshot1']
|
||||||
snapshot2 = module.params['snapshot2']
|
snapshot2 = module.params['snapshot2']
|
||||||
compare_option = module.params['compare_option']
|
compare_option = module.params['compare_option']
|
||||||
command = 'show snapshot compare {0} {1} {2}'.format(snapshot1, snapshot2, compare_option)
|
command = 'show snapshot compare {0} {1}'.format(snapshot1, snapshot2)
|
||||||
|
if compare_option:
|
||||||
|
command += ' {0}'.format(compare_option)
|
||||||
content = execute_show_command(command, module)[0]
|
content = execute_show_command(command, module)[0]
|
||||||
if content:
|
if content:
|
||||||
write_on_file(content, comparison_results_file, module)
|
write_on_file(content, comparison_results_file, module)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue