DK101010 commented on a change in pull request #4548:
URL: https://github.com/apache/cloudstack/pull/4548#discussion_r544244990



##########
File path: 
server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java
##########
@@ -942,7 +942,20 @@ private UserVm importVirtualMachineInternal(final 
UnmanagedInstanceTO unmanagedI
         if (CollectionUtils.isEmpty(unmanagedInstanceDisks)) {
             throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, 
String.format("No attached disks found for the unmanaged VM: %s", 
instanceName));
         }
-        final UnmanagedInstanceTO.Disk rootDisk = 
unmanagedInstance.getDisks().get(0);
+        UnmanagedInstanceTO.Disk rootDisk = 
unmanagedInstance.getDisks().get(0);

Review comment:
       @shwstppr ahh ok, yes of course this is a better solution, i will check 
this. 




----------------------------------------------------------------
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:
[email protected]


Reply via email to