community.general
community.general copied to clipboard
proxmox_disk: prevent trying to shrink disks
SUMMARY
Shrinking Disks is not supported by the PVE API and should be prevented by the module: https://pve.proxmox.com/wiki/Resize_disks
Currently, when the configured size of the disk is smaller than the actual size, the module reports a change, but the change isn't actually happening. The module doesn't detect that this fails.
This PR checks if the user tries to shrink the disk and then fails instead of contacting the PVE API.
ISSUE TYPE
- Bugfix Pull Request
COMPONENT NAME
- proxmox_disk