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:
parent
788c909c0a
commit
75b0436515
@ -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">\
|
||||||
|
Loading…
Reference in New Issue
Block a user