diff --git a/lib/ansible/modules/network/nxos/nxos_config.py b/lib/ansible/modules/network/nxos/nxos_config.py index 5987e33d329..44ceba333fe 100644 --- a/lib/ansible/modules/network/nxos/nxos_config.py +++ b/lib/ansible/modules/network/nxos/nxos_config.py @@ -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)