Skip to content

Commit 3c1064b

Browse files
committed
Address review comment
1 parent 7140bed commit 3c1064b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api/src/main/java/com/cloud/vm/VmDetailConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public interface VmDetailConstants {
4141
String KVM_VNC_PORT = "kvm.vnc.port";
4242
String KVM_VNC_ADDRESS = "kvm.vnc.address";
4343
String KVM_VNC_PASSWORD = "kvm.vnc.password";
44-
String KVM_GUEST_OS_TYPE_MACHINE = "kvm.guest.os.type.machine";
44+
String KVM_GUEST_OS_MACHINE_TYPE = "kvm.guest.os.machine.type";
4545

4646
// KVM specific, custom virtual GPU hardware
4747
String VIDEO_HARDWARE = "video.hardware";

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3292,8 +3292,8 @@ protected GuestDef createGuestFromSpec(VirtualMachineTO vmTO, LibvirtVMDef vm, S
32923292
}
32933293
}
32943294
guest.setIothreads(customParams.containsKey(VmDetailConstants.IOTHREADS));
3295-
if (customParams.containsKey(VmDetailConstants.KVM_GUEST_OS_TYPE_MACHINE)) {
3296-
guest.setMachineType(customParams.get(VmDetailConstants.KVM_GUEST_OS_TYPE_MACHINE));
3295+
if (customParams.containsKey(VmDetailConstants.KVM_GUEST_OS_MACHINE_TYPE)) {
3296+
guest.setMachineType(customParams.get(VmDetailConstants.KVM_GUEST_OS_MACHINE_TYPE));
32973297
}
32983298
}
32993299
guest.setUuid(uuid);

0 commit comments

Comments
 (0)