Skip to content

Commit f66ce65

Browse files
authored
return ESXi by default
1 parent 5298897 commit f66ce65

File tree

1 file changed

+3
-3
lines changed
  • vmware-base/src/main/java/com/cloud/hypervisor/vmware/mo

1 file changed

+3
-3
lines changed

vmware-base/src/main/java/com/cloud/hypervisor/vmware/mo/HostMO.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,9 @@ public AboutInfo getHostAboutInfo() throws Exception {
321321
public VmwareHostType getHostType() throws Exception {
322322
AboutInfo aboutInfo = getHostAboutInfo();
323323
if (aboutInfo == null) {
324-
String msg = "no type info about host known"
325-
s_logger.error(msg)
326-
throw new Exception(msg);
324+
String msg = "no type info about host known, assuming ESXi"
325+
s_logger.warn(msg)
326+
return VmwareHostType.ESXi;
327327
}
328328
if ("VMware ESXi".equals(aboutInfo.getName()))
329329
return VmwareHostType.ESXi;

0 commit comments

Comments
 (0)