Skip to content

Commit 7048944

Browse files
authored
[Fix] VMware to KVM migration instances listing failure (#12766)
1 parent 3b42fbf commit 7048944

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vmware-base/src/main/java/com/cloud/hypervisor/vmware/mo/BaseMO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ private UnmanagedInstanceTO createUnmanagedInstanceTOFromThinListingDynamicPrope
226226
} else if (objProp.getName().equals("config.bootOptions")) {
227227
VirtualMachineBootOptions bootOptions = (VirtualMachineBootOptions) objProp.getVal();
228228
String bootMode = "LEGACY";
229-
if (bootOptions != null && bootOptions.isEfiSecureBootEnabled()) {
229+
if (bootOptions != null && Boolean.TRUE.equals(bootOptions.isEfiSecureBootEnabled())) {
230230
bootMode = "SECURE";
231231
}
232232
vm.setBootMode(bootMode);

vmware-base/src/main/java/com/cloud/hypervisor/vmware/util/VmwareHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ public static UnmanagedInstanceTO getUnmanagedInstance(VmwareHypervisorHost hype
819819
instance.setBootType(firmware.equalsIgnoreCase("efi") ? "UEFI" : "BIOS");
820820
VirtualMachineBootOptions bootOptions = configInfo.getBootOptions();
821821
String bootMode = "LEGACY";
822-
if (bootOptions != null && bootOptions.isEfiSecureBootEnabled()) {
822+
if (bootOptions != null && Boolean.TRUE.equals(bootOptions.isEfiSecureBootEnabled())) {
823823
bootMode = "SECURE";
824824
}
825825
instance.setBootMode(bootMode);

0 commit comments

Comments
 (0)