Skip to content

Commit b8ec941

Browse files
uefi property typo (apache#11929)
1 parent ac8c200 commit b8ec941

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3281,25 +3281,25 @@ private void configureGuestIfUefiEnabled(boolean isSecureBoot, String bootMode,
32813281
setGuestLoader(bootMode, SECURE, guest, GuestDef.GUEST_LOADER_SECURE);
32823282
setGuestLoader(bootMode, LEGACY, guest, GuestDef.GUEST_LOADER_LEGACY);
32833283

3284-
if (isUefiPropertieNotNull(GuestDef.GUEST_NVRAM_PATH)) {
3284+
if (isUefiPropertyNotNull(GuestDef.GUEST_NVRAM_PATH)) {
32853285
guest.setNvram(uefiProperties.getProperty(GuestDef.GUEST_NVRAM_PATH));
32863286
}
32873287

3288-
if (isSecureBoot && isUefiPropertieNotNull(GuestDef.GUEST_NVRAM_TEMPLATE_SECURE) && SECURE.equalsIgnoreCase(bootMode)) {
3288+
if (isSecureBoot && isUefiPropertyNotNull(GuestDef.GUEST_NVRAM_TEMPLATE_SECURE) && SECURE.equalsIgnoreCase(bootMode)) {
32893289
guest.setNvramTemplate(uefiProperties.getProperty(GuestDef.GUEST_NVRAM_TEMPLATE_SECURE));
3290-
} else if (isUefiPropertieNotNull(GuestDef.GUEST_NVRAM_TEMPLATE_LEGACY)) {
3290+
} else if (isUefiPropertyNotNull(GuestDef.GUEST_NVRAM_TEMPLATE_LEGACY)) {
32913291
guest.setNvramTemplate(uefiProperties.getProperty(GuestDef.GUEST_NVRAM_TEMPLATE_LEGACY));
32923292
}
32933293
}
32943294

3295-
private void setGuestLoader(String bootMode, String mode, GuestDef guest, String propertie) {
3296-
if (isUefiPropertieNotNull(propertie) && mode.equalsIgnoreCase(bootMode)) {
3297-
guest.setLoader(uefiProperties.getProperty(propertie));
3295+
private void setGuestLoader(String bootMode, String mode, GuestDef guest, String property) {
3296+
if (isUefiPropertyNotNull(property) && mode.equalsIgnoreCase(bootMode)) {
3297+
guest.setLoader(uefiProperties.getProperty(property));
32983298
}
32993299
}
33003300

3301-
private boolean isUefiPropertieNotNull(String propertie) {
3302-
return uefiProperties.getProperty(propertie) != null;
3301+
private boolean isUefiPropertyNotNull(String property) {
3302+
return uefiProperties.getProperty(property) != null;
33033303
}
33043304

33053305
public boolean isGuestAarch64() {

0 commit comments

Comments
 (0)