An exception occurred during task execution. To see the full traceback, use -vvv. The error was: UnboundLocalError: local variable 'body' referenced before assignment
fatal: [
asw-004b.sea3.service-now.com]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_tvr_so/ansible_module_nxos_reboot.py\", line 297, in <module>\n main()\n File \"/tmp/ansible_tvr_so/ansible_module_nxos_reboot.py\", line 284, in main\n reboot(module)\n File \"/tmp/ansible_tvr_so/ansible_module_nxos_reboot.py\", line 217, in reboot\n disable_confirmation(module)\n File \"/tmp/ansible_tvr_so/ansible_module_nxos_reboot.py\", line 263, in disable_confirmation\n body = execute_show_command(command, module, command_type='cli_show_ascii')[0]\n File \"/tmp/ansible_tvr_so/ansible_module_nxos_reboot.py\", line 258, in execute_show_command\n return body\nUnboundLocalError: local variable 'body' referenced before assignment\n", "module_stdout": "", "msg": "MODULE FAILURE"}