mirror of https://github.com/apache/cloudstack.git
[Fix] VMware to KVM migration instances listing failure (#12766)
This commit is contained in:
parent
3b42fbf3b2
commit
7048944883
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue