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

This commit is contained in:
Daniel Molina committed 2014-10-27 18:38:08 +01:00
1 parent 13a654bea6
commit 9aff29cfb0
1 file changed
+1 -1
+1 -1
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;
}