Fix nxos_config `save` parameter (#28838)

Also fix saving in general
pull/28881/head
Nathaniel Case 7 years ago committed by GitHub
parent 35ec00ac5c
commit 74daf2381b

@ -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)

Loading…
Cancel
Save