sureshanaparti commented on a change in pull request #5857:
URL: https://github.com/apache/cloudstack/pull/5857#discussion_r799376841



##########
File path: server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
##########
@@ -3831,11 +3830,15 @@ private UserVm createVirtualMachine(DataCenter zone, 
ServiceOffering serviceOffe
         // check if account/domain is with in resource limits to create a new 
vm
         boolean isIso = Storage.ImageFormat.ISO == template.getFormat();
 
-        long size = configureCustomRootDiskSize(customParameters, template, 
hypervisorType, offering);
+        long volumesSize = isIso ? 0 : 
configureCustomRootDiskSize(customParameters, template, hypervisorType, 
offering);

Review comment:
       agree @DaanHoogland 




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