CLOUDSTACK-5614: UI > Infrastructure > Sockets > show "N/A" in Socketes column for hypervisors that don't support socket info.

This commit is contained in:
Jessica Wang 2014-01-10 14:17:38 -08:00
parent db02388eb0
commit ec191455f4
1 changed files with 12 additions and 1 deletions

View File

@ -7471,6 +7471,13 @@
$.ajax({
url: createURL('listHypervisors'),
success: function(json) {
var supportSocketHypervisors = {
"Hyperv": 1,
"KVM": 1,
"XenServer": 1,
"VMware": 1
};
args.response.success({
data: $(json.listhypervisorsresponse.hypervisor).map(function(index, hypervisor) {
var totalHostCount = 0;
@ -7514,7 +7521,11 @@
}
callListHostsWithPage(true);
if ((hypervisor.name in supportSocketHypervisors) == false) {
returnedHostCpusocketsSum = 'N/A';
}
return {
hypervisor: hypervisor.name,
hosts: totalHostCount,