shwstppr commented on code in PR #8433:
URL: https://github.com/apache/cloudstack/pull/8433#discussion_r1440435413


##########
server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java:
##########
@@ -1336,8 +1335,8 @@ private UserVmResponse 
baseImportInstance(ImportUnmanagedInstanceCmd cmd) {
                         details, importVmCmd, forced);
             }
         } else {
-            if (cluster.getHypervisorType() == 
Hypervisor.HypervisorType.VMware) {
-                userVm = importUnmanagedInstanceFromVmwareToVmware(zone, 
cluster, hosts, additionalNameFilters,
+            if (cluster.getHypervisorType() == 
Hypervisor.HypervisorType.VMware || cluster.getHypervisorType() == 
Hypervisor.HypervisorType.KVM) {

Review Comment:
   minor
   
   ```suggestion
               if (List.of(Hypervisor.HypervisorType.VMware, 
Hypervisor.HypervisorType.KVM).contains(cluster.getHypervisorType())) {
   ```



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