mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-19 06:50:07 +03:00
B #4782: Fix uncaught errors when a Role VM cannot be monitored
This commit is contained in:
parent
7c36ef0381
commit
a367336436
@ -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>
|
||||
|
@ -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);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -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">'+
|
||||
|
@ -147,6 +147,7 @@ define(function(require) {
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user