mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-04 20:29:27 +01:00
bug 8446: fixed creating volume from diskOffering with custom size
status 8446: resolved fixed
This commit is contained in:
parent
807562da50
commit
a502b497f2
@ -1416,7 +1416,7 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
|
|||||||
throw new InvalidParameterValueException("This disk offering requires a custom size specified");
|
throw new InvalidParameterValueException("This disk offering requires a custom size specified");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (diskOffering.isCustomized() && size != null) {
|
if (!diskOffering.isCustomized() && size != null) {
|
||||||
throw new InvalidParameterValueException("This disk offering does not allow custom size");
|
throw new InvalidParameterValueException("This disk offering does not allow custom size");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user