bug 8446: fixed creating volume from diskOffering with custom size

status 8446: resolved fixed
This commit is contained in:
alena 2011-02-07 12:42:46 -08:00
parent 807562da50
commit a502b497f2
1 changed files with 1 additions and 1 deletions

View File

@ -1416,7 +1416,7 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
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");
}