sureshanaparti commented on code in PR #10917:
URL: https://github.com/apache/cloudstack/pull/10917#discussion_r2128304847


##########
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java:
##########
@@ -3379,13 +3379,14 @@ public boolean isQemuDiscardBugFree(DiskDef.DiskBus 
diskBus) {
         return diskBus != DiskDef.DiskBus.IDE || getHypervisorQemuVersion() >= 
HYPERVISOR_QEMU_VERSION_IDE_DISCARD_FIXED;
     }
 
-    public boolean isUbuntuHost() {
+    public boolean isUbuntuOrDebianHost() {
         Map<String, String> versionString = getVersionStrings();
         String hostKey = "Host.OS";
         if (MapUtils.isEmpty(versionString) || 
!versionString.containsKey(hostKey) || versionString.get(hostKey) == null) {
             return false;
         }
-        return versionString.get(hostKey).equalsIgnoreCase("ubuntu");
+        return versionString.get(hostKey).equalsIgnoreCase("ubuntu")
+                || versionString.get(hostKey).startsWith("Debian");

Review Comment:
   ```suggestion
                   || 
versionString.get(hostKey).toLowerCase().startsWith("debian");
   ```



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to