shwstppr commented on a change in pull request #5045:
URL: https://github.com/apache/cloudstack/pull/5045#discussion_r642303555



##########
File path: server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
##########
@@ -4048,7 +4048,8 @@ public UserVmVO doInTransaction(TransactionStatus status) 
throws InsufficientCap
                         vm.setDetail(VmDetailConstants.FIRMWARE, "efi");
                         s_logger.info("guestOS is OSX : overwrite root disk 
controller to scsi, use smc and efi");
                     } else {
-                        String controllerSetting = 
_configDao.getValue("vmware.root.disk.controller");
+                        String controllerSetting = 
StringUtils.defaultIfEmpty(_configDao.getValue(Config.VmwareRootDiskControllerType.key()),
+                                
Config.VmwareRootDiskControllerType.getDefaultValue());

Review comment:
       @rhtyd Didn't get you. Code change is to use the default value of the 
config when the value set against it is empty.




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