bug 8112: this broke again after the alex refactor. Fixing it again

status 8112: resolved fixed
This commit is contained in:
abhishek 2011-01-19 18:02:33 -08:00
parent 3f9e96b08a
commit 09960f76eb
1 changed files with 2 additions and 0 deletions

View File

@ -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) {