1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Feature #3227: Only strip HOSTS from vCenter hypervisors

This commit is contained in:
Tino Vazquez 2014-10-06 17:31:34 +02:00 committed by Ruben S. Montero
parent e5361c550a
commit 4d6bd4325e

View File

@ -760,11 +760,18 @@ function updateHostInfo(request,host){
var stripped_host_template = {};
var unshown_values = {};
for (key in host_info.TEMPLATE)
if(!key.match(/HOST/))
stripped_host_template[key]=host_info.TEMPLATE[key];
else
unshown_values[key]=host_info.TEMPLATE[key];
if (host_info.TEMPLATE.HYPERVISOR.toLowerCase() != "vcenter")
{
stripped_host_template = host_info.TEMPLATE;
}
else
{
for (key in host_info.TEMPLATE)
if(!key.match(/HOST/))
stripped_host_template[key]=host_info.TEMPLATE[key];
else
unshown_values[key]=host_info.TEMPLATE[key];
}
//Information tab
var info_tab = {