mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-5614: UI > Infrastructure > Sockets > show "N/A" in Socketes column for hypervisors that don't support socket info.
This commit is contained in:
parent
0d24d323c0
commit
96c6f6d15d
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user