mirror of https://github.com/apache/cloudstack.git
bug 8112: this broke again after the alex refactor. Fixing it again
status 8112: resolved fixed
This commit is contained in:
parent
3f9e96b08a
commit
09960f76eb
|
|
@ -2473,6 +2473,8 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
|
|||
long userId = UserContext.current().getCallerUserId();
|
||||
if (size == null) {
|
||||
size = offering.getDiskSizeInBytes();
|
||||
}else {
|
||||
size = (size * 1024 * 1024 * 1024);
|
||||
}
|
||||
VolumeVO vol = new VolumeVO(type, name, vm.getDataCenterId(), owner.getDomainId(), owner.getId(), offering.getId(), size);
|
||||
if (vm != null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue