We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4c0213 commit 78589f0Copy full SHA for 78589f0
server/src/com/cloud/storage/VolumeApiServiceImpl.java
@@ -974,6 +974,10 @@ public VolumeVO resizeVolume(ResizeVolumeCmd cmd) throws ResourceAllocationExcep
974
// convert from GiB to bytes
975
newSize = newSize << 30;
976
} else {
977
+ if (cmd.getSize() != null) {
978
+ throw new InvalidParameterValueException("You cannnot pass in a custom disk size to a non-custom disk offering.");
979
+ }
980
+
981
newSize = newDiskOffering.getDiskSize();
982
}
983
0 commit comments