[Fix] VMware to KVM migration instances listing failure (#12766)

This commit is contained in:
Nicolas Vazquez 2026-03-13 11:12:38 -03:00 committed by GitHub
parent 3b42fbf3b2
commit 7048944883
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ public class BaseMO {
} else if (objProp.getName().equals("config.bootOptions")) {
VirtualMachineBootOptions bootOptions = (VirtualMachineBootOptions) objProp.getVal();
String bootMode = "LEGACY";
if (bootOptions != null && bootOptions.isEfiSecureBootEnabled()) {
if (bootOptions != null && Boolean.TRUE.equals(bootOptions.isEfiSecureBootEnabled())) {
bootMode = "SECURE";
}
vm.setBootMode(bootMode);

View File

@ -819,7 +819,7 @@ public class VmwareHelper {
instance.setBootType(firmware.equalsIgnoreCase("efi") ? "UEFI" : "BIOS");
VirtualMachineBootOptions bootOptions = configInfo.getBootOptions();
String bootMode = "LEGACY";
if (bootOptions != null && bootOptions.isEfiSecureBootEnabled()) {
if (bootOptions != null && Boolean.TRUE.equals(bootOptions.isEfiSecureBootEnabled())) {
bootMode = "SECURE";
}
instance.setBootMode(bootMode);