Skip to content

Commit

Permalink
Added fix for module.fail_json, now it takes 2 Arguments. Issue was: #…
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavbansal29 committed Sep 17, 2024
1 parent 2d2ad43 commit 8aa21c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/ntnx_vms.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ 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 8aa21c2

Please sign in to comment.