Skip to content

Commit 5cc722d

Browse files
committed
Add clearer error/fail response
1 parent 5fe2617 commit 5cc722d

File tree

1 file changed

+1
-1
lines changed
  • merizrizal/idcloudhost/plugins/modules

1 file changed

+1
-1
lines changed

merizrizal/idcloudhost/plugins/modules/vm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ def _delete_vm(self, vm) -> dict:
531531
vm.update(changed=True)
532532
else:
533533
result = dict(
534-
error='There was a problem with the request.'
534+
error=response.json()
535535
)
536536

537537
self._module.fail_json(msg='Failed to delete the VM.', **result)

0 commit comments

Comments
 (0)