You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/02/14 06:31:10 UTC

[GitHub] [cloudstack] rhtyd commented on a change in pull request #3879: kvm: Enable virtio drivers based on guest os display name

rhtyd commented on a change in pull request #3879: kvm: Enable virtio drivers based on guest os display name
URL: https://github.com/apache/cloudstack/pull/3879#discussion_r379269036
 
 

 ##########
 File path: server/src/main/java/com/cloud/hypervisor/KVMGuru.java
 ##########
 @@ -132,7 +132,7 @@ public VirtualMachineTO implement(VirtualMachineProfile vm) {
             guestOsMapping = _guestOsHypervisorDao.findByOsIdAndHypervisor(guestOS.getId(), getHypervisorType().toString(), host.getHypervisorVersion());
         }
         if (guestOsMapping == null || host == null) {
-            to.setPlatformEmulator("Other");
+            to.setPlatformEmulator(guestOS.getDisplayName());
 
 Review comment:
   @ustcweizhou how about we check and fallback to `"Other"` in case `guestOS.getDisplayName()` is null or empty (unlikely but just to make code more defensive)?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services