Skip to content

Commit 86508b7

Browse files
authored
vmware: Fix worker VM numeric invalid value (#5032)
1 parent b0cb087 commit 86508b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2280,7 +2280,7 @@ public static String getMinimumHostHardwareVersion(VmwareHypervisorHost host1, V
22802280
Integer host1Version = getHostHardwareVersion(host1);
22812281
Integer host2Version = getHostHardwareVersion(host2);
22822282
if (host1Version != null && host2Version != null && !host1Version.equals(host2Version)) {
2283-
hardwareVersion = String.valueOf(Math.min(host1Version, host2Version));
2283+
hardwareVersion = VirtualMachineMO.getVmxFormattedVirtualHardwareVersion(Math.min(host1Version, host2Version));
22842284
}
22852285
}
22862286
return hardwareVersion;

0 commit comments

Comments
 (0)