bug 8887 : Forgot the checkin

This commit is contained in:
nit 2011-03-15 18:32:55 -07:00
parent 6d691f0021
commit 057ddad997
1 changed files with 8 additions and 1 deletions

View File

@ -417,7 +417,14 @@ public class AlertManagerImpl implements AlertManager {
try {
List<CapacityVO> capacityList = _capacityDao.listAll();
Map<String, List<CapacityVO>> capacityDcTypeMap = new HashMap<String, List<CapacityVO>>();
Map<String, List<CapacityVO>> capacityDcTypeMap = new HashMap<String, List<CapacityVO>>();
List<CapacityVO> storagePoolStatsList = _storageMgr.getStoragePoolUsedStats(null, null, null);
if (capacityList == null){
capacityList = storagePoolStatsList;
}else {
capacityList.addAll(storagePoolStatsList);
}
for (CapacityVO capacity : capacityList) {
long dataCenterId = capacity.getDataCenterId();