Fix logic check error for update GPU groupDetails (#6405)

This commit is contained in:
HuangWei 2022-05-24 21:00:48 +08:00 committed by GitHub
parent c123c3fd2f
commit 1ead6c1bac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -692,7 +692,7 @@ public class StatsCollector extends ManagerBase implements ComponentMethodInterc
}
for (HostVO host : gpuEnabledHosts) {
HashMap<String, HashMap<String, VgpuTypesInfo>> groupDetails = _resourceMgr.getGPUStatistics(host);
if (MapUtils.isEmpty(groupDetails)) {
if (!MapUtils.isEmpty(groupDetails)) {
_resourceMgr.updateGPUDetails(host.getId(), groupDetails);
}
}