mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6087: Read max custom disk offering size from database,
rather than hard-coded max value of 1024
This commit is contained in:
parent
9a3adc97ca
commit
12a013798a
|
|
@ -328,7 +328,7 @@ public class VolumeManagerImpl extends ManagerBase implements VolumeManager {
|
|||
@Inject
|
||||
StorageManager storageMgr;
|
||||
private int _customDiskOfferingMinSize = 1;
|
||||
private final int _customDiskOfferingMaxSize = 1024;
|
||||
private int _customDiskOfferingMaxSize = 1024;
|
||||
private long _maxVolumeSizeInGb;
|
||||
private boolean _recreateSystemVmEnabled;
|
||||
private boolean _storageHAMigrationEnabled;
|
||||
|
|
@ -2705,6 +2705,10 @@ public class VolumeManagerImpl extends ManagerBase implements VolumeManager {
|
|||
.parseInt(Config.CustomDiskOfferingMinSize
|
||||
.getDefaultValue()));
|
||||
|
||||
String _customDiskOfferingMaxSizeStr = _configDao.getValue(Config.CustomDiskOfferingMaxSize.toString());
|
||||
Integer defaultCustomDiskOfferingMaxSize = Integer.parseInt(Config.CustomDiskOfferingMaxSize.getDefaultValue());
|
||||
_customDiskOfferingMaxSize = NumbersUtil.parseInt(_customDiskOfferingMaxSizeStr, defaultCustomDiskOfferingMaxSize);
|
||||
|
||||
String maxVolumeSizeInGbString = _configDao
|
||||
.getValue("storage.max.volume.size");
|
||||
_maxVolumeSizeInGb = NumbersUtil.parseLong(maxVolumeSizeInGbString,
|
||||
|
|
|
|||
Loading…
Reference in New Issue