mirror of https://github.com/apache/cloudstack.git
Bug 9440: we specify the wrong disk size when attaching storage device with custom size offering
wrong usage of volume size which is in bytes for setting the size of disk offering which in MB pushing 2.2.4 fix to master
This commit is contained in:
parent
b84905530a
commit
9dddeaa5a5
|
|
@ -650,7 +650,7 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
|
|||
final HashSet<StoragePool> avoidPools = new HashSet<StoragePool>(avoids);
|
||||
|
||||
if (diskOffering != null && diskOffering.isCustomized()) {
|
||||
diskOffering.setDiskSize(size);
|
||||
diskOffering.setDiskSize(size/(1024*1024));
|
||||
}
|
||||
DiskProfile dskCh = null;
|
||||
if (volume.getVolumeType() == Type.ROOT && Storage.ImageFormat.ISO != template.getFormat()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue