diff --git a/plugins/module_utils/prism/vms.py b/plugins/module_utils/prism/vms.py index a1ca89876..710cd0827 100644 --- a/plugins/module_utils/prism/vms.py +++ b/plugins/module_utils/prism/vms.py @@ -443,6 +443,11 @@ def _generate_disk_spec( msg="Unsupported operation: Unable to decrease disk size.", disk=disk, ) + elif not vdisk.get("uuid"): + self.module.fail_json( + msg="Unsupported operation: Unable to create disk, 'size_gb' is required.", + disk=disk, + ) if vdisk.get("storage_container"): disk.pop("data_source_reference", None)