mirror of https://github.com/apache/cloudstack.git
bug 8887 : Forgot the checkin
This commit is contained in:
parent
6d691f0021
commit
057ddad997
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue