Skip to content

Commit

Permalink
Added fix for module.fail_json, now it takes 2 Arguments (#498)
Browse files Browse the repository at this point in the history
* Added fix for module.fail_json, now it takes 2 Arguments. Issue was: #465

* After running black
  • Loading branch information
abhinavbansal29 authored Sep 23, 2024
1 parent 48aab1a commit de49880
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/modules/ntnx_vms.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,8 @@ def update_vm(module, result):
if is_vm_on and vm.is_restart_required():
if not module.params.get("force_power_off"):
module.fail_json(
"To make these changes, the VM should be restarted, but 'force_power_off' is False"
msg="To make these changes, the VM should be restarted, but 'force_power_off' is False",
**result,
)

power_off_vm(vm, module, result)
Expand Down

0 comments on commit de49880

Please sign in to comment.