return comparisonChain.result();
}
});
for (VirtualGuestBlockDevice blockDevice : virtualGuestConfiguration.getVirtualGuestBlockDevices()) {
float capacity = blockDevice.getVirtualDiskImage().getCapacity();
Type type = blockDevice.getVirtualGuest().isLocalDiskFlag() ? Type.LOCAL : Type.SAN;
if (blockDevice.getDevice().equals(BOOTABLE_DEVICE)) {
for (Integer cpus : virtualGuestConfiguration.getCpusOfProcessors()) {
for (Integer memory : virtualGuestConfiguration.getMemories()) {
String id = format("cpu=%s,memory=%s,disk=%s,type=%s", cpus, memory, round(capacity), type);
hardware.add(new HardwareBuilder()