Fixed NPE in listVirtualMachines command - when search for ROOT volume's storagePool type, assume that corresponding storagePool might be removed.

This commit is contained in:
alena 2011-03-29 20:17:49 -07:00
parent efd4cfa297
commit dadab81721

View File

@ -394,7 +394,7 @@ public class ApiDBUtils {
} }
public static StoragePoolVO findStoragePoolById(Long storagePoolId) { public static StoragePoolVO findStoragePoolById(Long storagePoolId) {
return _storagePoolDao.findById(storagePoolId); return _storagePoolDao.findByIdIncludingRemoved(storagePoolId);
} }
public static VMTemplateVO findTemplateById(Long templateId) { public static VMTemplateVO findTemplateById(Long templateId) {