mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
sends save command in text mode otherwise it fails (#21812)
Sending the save command over nxapi requires text mode otherwise nxapi will reject the command. This commit ensures that the command is always sent in text mode fixes #18971
This commit is contained in:
parent
0e7ebf6391
commit
730bd682c6
1 changed files with 2 additions and 1 deletions
|
@ -332,7 +332,8 @@ def main():
|
|||
|
||||
if module.params['save']:
|
||||
if not module.check_mode:
|
||||
run_commands(module, ['copy running-config startup-config'])
|
||||
cmd = {'command': 'copy running-config startup-config', 'output': 'text'}
|
||||
run_commands(module, [cmd])
|
||||
result['changed'] = True
|
||||
|
||||
module.exit_json(**result)
|
||||
|
|
Loading…
Reference in a new issue