File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
vmware-base/src/main/java/com/cloud/hypervisor/vmware Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments