1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-25 23:21:29 +03:00

Fix showing hybrid VMs in sunstone

(cherry picked from commit 4b819625b9)
This commit is contained in:
Javi Fontan 2015-02-11 19:01:15 +01:00
parent 788c909c0a
commit 75b0436515

View File

@ -2106,7 +2106,8 @@ function printNics(vm_info){
var isHybrid = calculate_isHybrid(vm_info); var isHybrid = calculate_isHybrid(vm_info);
// vCenter has network capabilities // vCenter has network capabilities
if (vm_info.USER_TEMPLATE.HYPERVISOR.toLowerCase() == "vcenter") if (vm_info.USER_TEMPLATE.HYPERVISOR &&
vm_info.USER_TEMPLATE.HYPERVISOR.toLowerCase() == "vcenter")
{ {
isHybrid = false; isHybrid = false;
} }
@ -2255,7 +2256,8 @@ function printNics(vm_info){
} }
// Do not show statistics for not hypervisors that do not gather net data // Do not show statistics for not hypervisors that do not gather net data
if (!isHybrid && vm_info.USER_TEMPLATE.HYPERVISOR.toLowerCase() != "vcenter") if (!isHybrid && vm_info.USER_TEMPLATE.HYPERVISOR &&
vm_info.USER_TEMPLATE.HYPERVISOR.toLowerCase() != "vcenter")
{ {
html += '\ html += '\
<div class="row">\ <div class="row">\