weizhouapache commented on code in PR #11054:
URL: https://github.com/apache/cloudstack/pull/11054#discussion_r2155527059


##########
vmware-base/src/main/java/com/cloud/hypervisor/vmware/mo/HostMO.java:
##########
@@ -320,6 +320,11 @@ public AboutInfo getHostAboutInfo() throws Exception {
 
     public VmwareHostType getHostType() throws Exception {
         AboutInfo aboutInfo = getHostAboutInfo();
+        if (aboutInfo == null) {
+            String msg = "no type info about host known"
+            s_logger.error(msg)
+            throw new Exception(msg);

Review Comment:
   can it be defaulted to `VmwareHostType.ESXi` ?
   
   



-- 
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: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to