diff --git a/xCAT-UI/js/nodes/nodes.js b/xCAT-UI/js/nodes/nodes.js index 5c792f3ba..baa79e5f5 100644 --- a/xCAT-UI/js/nodes/nodes.js +++ b/xCAT-UI/js/nodes/nodes.js @@ -1376,11 +1376,13 @@ function loadGangliaStatus(data) { node = jQuery.trim(ganglia[i][0]); status = jQuery.trim(ganglia[i][1]); - // Get the row containing the node - rowNum = findRow(node, '#' + nodesTableId, 1); - - // Update the power status column - datatable.fnUpdate(status, rowNum, 4); + if (node) { + // Get the row containing the node + rowNum = findRow(node, '#' + nodesTableId, 1); + + // Update the power status column + datatable.fnUpdate(status, rowNum, 4); + } } // Hide Ganglia loader diff --git a/xCAT-UI/js/service/service.js b/xCAT-UI/js/service/service.js index 82a2f1c98..f86263ed6 100644 --- a/xCAT-UI/js/service/service.js +++ b/xCAT-UI/js/service/service.js @@ -660,11 +660,13 @@ function loadGangliaStatus(data) { node = jQuery.trim(ganglia[i][0]); status = jQuery.trim(ganglia[i][1]); - // Get the row containing the node - rowNum = findRow(node, '#' + nodesDTId, 1); + if (node) { + // Get the row containing the node + rowNum = findRow(node, '#' + nodesDTId, 1); - // Update the power status column - datatable.fnUpdate(status, rowNum, 4); + // Update the power status column + datatable.fnUpdate(status, rowNum, 4); + } } // Hide Ganglia loader