mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-6238: NPE in HostStatsCollector.
This commit is contained in:
parent
286974488e
commit
6a5d3e96c9
@ -343,7 +343,9 @@ public class StatsCollector extends ManagerBase implements ComponentMethodInterc
|
|||||||
}
|
}
|
||||||
for (HostVO host : gpuEnabledHosts) {
|
for (HostVO host : gpuEnabledHosts) {
|
||||||
HashMap<String, HashMap<String, Long>> groupDetails = _resourceMgr.getGPUStatistics(host);
|
HashMap<String, HashMap<String, Long>> groupDetails = _resourceMgr.getGPUStatistics(host);
|
||||||
_resourceMgr.updateGPUDetails(host.getId(), groupDetails);
|
if (groupDetails != null) {
|
||||||
|
_resourceMgr.updateGPUDetails(host.getId(), groupDetails);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
hostIds = _hostGpuGroupsDao.listHostIds();
|
hostIds = _hostGpuGroupsDao.listHostIds();
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user