DaanHoogland commented on a change in pull request #3251: [WIP DO NOT MERGE] 
Add local ISO upload via UI
URL: https://github.com/apache/cloudstack/pull/3251#discussion_r271681430
 
 

 ##########
 File path: server/src/main/java/com/cloud/template/TemplateAdapterBase.java
 ##########
 @@ -284,35 +285,62 @@ public TemplateProfile prepare(RegisterTemplateCmd cmd) 
throws ResourceAllocatio
 
     }
 
-    @Override
-    public TemplateProfile prepare(GetUploadParamsForTemplateCmd cmd) throws 
ResourceAllocationException {
+    /**
+     * Prepare upload parameters internal method for templates and ISOs local 
upload
+     */
+    private TemplateProfile prepareUploadParamsInternal(boolean isIso, long 
userId, String name, String displayText,
 
 Review comment:
   It is confusing any which way :( also this private method has javadoc which, 
if needed is not ideal.
   I was thinking of putting both cmd in a hierarchy and passing the parent 
here. or derive the iso cmd from the template one.
   anyway not a showstopper, but prone to improvement.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to