Skip to content

Commit ec19145

Browse files
author
Jessica Wang
committed
CLOUDSTACK-5614: UI > Infrastructure > Sockets > show "N/A" in Socketes column for hypervisors that don't support socket info.
1 parent db02388 commit ec19145

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

‎ui/scripts/system.js‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7471,6 +7471,13 @@
74717471
$.ajax({
74727472
url: createURL('listHypervisors'),
74737473
success: function(json) {
7474+
var supportSocketHypervisors = {
7475+
"Hyperv": 1,
7476+
"KVM": 1,
7477+
"XenServer": 1,
7478+
"VMware": 1
7479+
};
7480+
74747481
args.response.success({
74757482
data: $(json.listhypervisorsresponse.hypervisor).map(function(index, hypervisor) {
74767483
var totalHostCount = 0;
@@ -7514,7 +7521,11 @@
75147521
}
75157522

75167523
callListHostsWithPage(true);
7517-
7524+
7525+
if ((hypervisor.name in supportSocketHypervisors) == false) {
7526+
returnedHostCpusocketsSum = 'N/A';
7527+
}
7528+
75187529
return {
75197530
hypervisor: hypervisor.name,
75207531
hosts: totalHostCount,

0 commit comments

Comments
 (0)