fix the node status field error

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8544 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2011-01-04 14:02:43 +00:00
parent 72759d456f
commit 39be28ac69

View File

@ -405,7 +405,11 @@ function loadNodes(data) {
// Create a check box, node link, and get node status
var checkBx = '<input type="checkbox" name="' + node + '"/>';
var nodeLink = $('<a class="node" id="' + node + '">' + node + '</a>').bind('click', loadNode);
var status = attrs[node]['status'].replace('sshd', 'ping');
var status = '';
if (attrs[node]['status']){
status = attrs[node]['status'].replace('sshd', 'ping');
}
// Push in checkbox, node link, status, and power
row.push(checkBx, nodeLink, status, '');