Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions b
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
test
test
test3
4
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,19 @@ public static List<ResourceHypervisorInfo> from(Collection<String> uuidSet) {
String type = tuple.get(1, String.class);
return mapResourceHypervisorInfo(uuid, type, uuidVoMap.get(uuid));
})
.filter(Objects::nonNull)
.collect(Collectors.toList());

fillMatchTargetInfo(results);
return results;
}

private static ResourceHypervisorInfo mapResourceHypervisorInfo(String uuid, String type, KvmHypervisorInfoVO vo) {
if (vo == null) {
// maybe vm is in stopped states
return null;
}

ResourceHypervisorInfo target = new ResourceHypervisorInfo();
target.uuid = uuid;
target.resourceType = type;
Expand Down