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

 ##########
 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:
   Sure Enum can be integrated, will work on it. 

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


With regards,
Apache Git Services

Reply via email to