pavanaravapalli commented on a change in pull request #3638: UEFI Support on 
CloudStack
URL: https://github.com/apache/cloudstack/pull/3638#discussion_r357669111
 
 

 ##########
 File path: 
api/src/main/java/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
 ##########
 @@ -257,12 +263,30 @@ public Long getDomainId() {
                 }
             }
         }
+        if(getBootType() != null){ // export to get
+            if(getBootType().equalsIgnoreCase("UEFI")) {
+                customparameterMap.put("UEFI", getBootMode());
+            }
+        }
+
         if (rootdisksize != null && 
!customparameterMap.containsKey("rootdisksize")) {
             customparameterMap.put("rootdisksize", rootdisksize.toString());
         }
         return customparameterMap;
     }
 
+    public String getBootType() {
+        if (bootType != null && !("bios".equalsIgnoreCase(bootType) || 
"uefi".equalsIgnoreCase(bootType))) {
 
 Review comment:
   Changes done as suggested.

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