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

bug #3262: Hosts in init/error state has no hypervisor defined

This commit is contained in:
Daniel Molina 2014-10-27 18:37:57 +01:00
parent 13a654bea6
commit 9aff29cfb0

View File

@ -766,7 +766,7 @@ function updateHostInfo(request,host){
var stripped_host_template = {};
var unshown_values = {};
if (host_info.TEMPLATE.HYPERVISOR.toLowerCase() != "vcenter")
if (host_info.TEMPLATE.HYPERVISOR && host_info.TEMPLATE.HYPERVISOR.toLowerCase() != "vcenter")
{
stripped_host_template = host_info.TEMPLATE;
}