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 0d24d323c0
commit 96c6f6d15d

View File

@ -8422,6 +8422,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;
@ -8466,6 +8473,10 @@
callListHostsWithPage(true);
if ((hypervisor.name in supportSocketHypervisors) == false) {
returnedHostCpusocketsSum = 'N/A';
}
return {
hypervisor: hypervisor.name,
hosts: totalHostCount,