mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
another fix for a related bug on data volumes I found whilst testing the parent bug
This commit is contained in:
parent
968dc0616f
commit
709fc3686f
@ -845,7 +845,7 @@ public class StorageManagerImpl implements StorageManager {
|
||||
rootVol.setDeviceId(0l);
|
||||
rootVol = _volsDao.persist(rootVol);
|
||||
|
||||
if ((diskOffering != null && diskOffering.getDiskSizeInBytes() > 0)) {
|
||||
if ((diskOffering != null && diskOffering.getDiskSizeInBytes() > 0) || (diskOffering != null && diskOffering.isCustomized())) {
|
||||
dataVol = new VolumeVO(VolumeType.DATADISK, vm.getId(), vm.getInstanceName() + "-DATA", dc.getId(), pod.getId(), account.getId(), account.getDomainId(), (size>0)? size : diskOffering.getDiskSizeInBytes());
|
||||
|
||||
createStartedEvent(account, dataVol);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user