1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix nxos_config save parameter (#28838)

Also fix saving in general
This commit is contained in:
Nathaniel Case 2017-08-31 10:01:19 -04:00 committed by GitHub
parent 35ec00ac5c
commit 74daf2381b

View file

@ -392,8 +392,11 @@ def main():
diff_ignore_lines = module.params['diff_ignore_lines']
if module.params['save']:
module.params['save_when'] = 'always'
if module.params['save_when'] != 'never':
output = run_commands(module, ['show running-config', 'startup-config'])
output = run_commands(module, ['show running-config', 'show startup-config'])
running_config = NetworkConfig(indent=1, contents=output[0], ignore_lines=diff_ignore_lines)
startup_config = NetworkConfig(indent=1, contents=output[1], ignore_lines=diff_ignore_lines)