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

B #4782: Fix uncaught errors when a Role VM cannot be monitored

This commit is contained in:
Carlos Martín 2016-09-15 15:48:27 +02:00
parent 7c36ef0381
commit a367336436
4 changed files with 10 additions and 2 deletions

View File

@ -47,7 +47,7 @@
</div>
<div class="large-12 columns">
<br>
<table id="datatable_vms_{{panelId}}_{{role.name}}" class="dataTable twelve ">
<table id="datatable_vms_{{panelId}}_{{role.name}}" class="dataTable hover ">
<thead>
<tr>
<th></th>

View File

@ -410,7 +410,9 @@ define(function(require) {
if (role.nodes && role.nodes.length > 0) {
$.each(role.nodes, function(index, node){
vms.push(node.vm_info);
if(node.vm_info != undefined){
vms.push(node.vm_info);
}
})
}

View File

@ -169,6 +169,11 @@ define(function(require) {
},
"fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
var data = aData.VM;
if(data == undefined){
return nRow;
}
var state = get_provision_vm_state(data);
$(".provision_vms_ul", context).append('<div class="column">'+

View File

@ -147,6 +147,7 @@ define(function(require) {
"",
"",
"",
"",
""
];
}