uefi property typo (#11929)

This commit is contained in:
Suresh Kumar Anaparti 2025-11-07 14:01:11 +05:30 committed by GitHub
parent ac8c200790
commit b8ec941ec1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3281,25 +3281,25 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
setGuestLoader(bootMode, SECURE, guest, GuestDef.GUEST_LOADER_SECURE);
setGuestLoader(bootMode, LEGACY, guest, GuestDef.GUEST_LOADER_LEGACY);
if (isUefiPropertieNotNull(GuestDef.GUEST_NVRAM_PATH)) {
if (isUefiPropertyNotNull(GuestDef.GUEST_NVRAM_PATH)) {
guest.setNvram(uefiProperties.getProperty(GuestDef.GUEST_NVRAM_PATH));
}
if (isSecureBoot && isUefiPropertieNotNull(GuestDef.GUEST_NVRAM_TEMPLATE_SECURE) && SECURE.equalsIgnoreCase(bootMode)) {
if (isSecureBoot && isUefiPropertyNotNull(GuestDef.GUEST_NVRAM_TEMPLATE_SECURE) && SECURE.equalsIgnoreCase(bootMode)) {
guest.setNvramTemplate(uefiProperties.getProperty(GuestDef.GUEST_NVRAM_TEMPLATE_SECURE));
} else if (isUefiPropertieNotNull(GuestDef.GUEST_NVRAM_TEMPLATE_LEGACY)) {
} else if (isUefiPropertyNotNull(GuestDef.GUEST_NVRAM_TEMPLATE_LEGACY)) {
guest.setNvramTemplate(uefiProperties.getProperty(GuestDef.GUEST_NVRAM_TEMPLATE_LEGACY));
}
}
private void setGuestLoader(String bootMode, String mode, GuestDef guest, String propertie) {
if (isUefiPropertieNotNull(propertie) && mode.equalsIgnoreCase(bootMode)) {
guest.setLoader(uefiProperties.getProperty(propertie));
private void setGuestLoader(String bootMode, String mode, GuestDef guest, String property) {
if (isUefiPropertyNotNull(property) && mode.equalsIgnoreCase(bootMode)) {
guest.setLoader(uefiProperties.getProperty(property));
}
}
private boolean isUefiPropertieNotNull(String propertie) {
return uefiProperties.getProperty(propertie) != null;
private boolean isUefiPropertyNotNull(String property) {
return uefiProperties.getProperty(property) != null;
}
public boolean isGuestAarch64() {