1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-24 21:34:01 +03:00

bug #2628: If a VM specify a GRAPHIC section without TYPE, vms will not be loaded

This commit is contained in:
Daniel Molina 2014-02-06 16:32:00 +01:00
parent fb58250c5b
commit 9913887fa0

View File

@ -3492,7 +3492,7 @@ function vncIcon(vm){
var state = OpenNebula.Helper.resource_state("vm_lcm",vm.LCM_STATE);
var gr_icon;
if (graphics && graphics.TYPE.toLowerCase() == "vnc" && $.inArray(state, VNCstates)!=-1){
if (graphics && graphics.TYPE && graphics.TYPE.toLowerCase() == "vnc" && $.inArray(state, VNCstates)!=-1){
gr_icon = '<a class="vnc" href="#" vm_id="'+vm.ID+'">';
gr_icon += '<i class="icon-desktop" style="color: rgb(111, 111, 111)"/>';
}