From 39be28ac694bf037b2ad53473c20230d799338a1 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Tue, 4 Jan 2011 14:02:43 +0000 Subject: [PATCH] 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 --- xCAT-UI/js/nodes/nodes.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-UI/js/nodes/nodes.js b/xCAT-UI/js/nodes/nodes.js index 2aaf1a2a6..b94d2fee5 100644 --- a/xCAT-UI/js/nodes/nodes.js +++ b/xCAT-UI/js/nodes/nodes.js @@ -405,7 +405,11 @@ function loadNodes(data) { // Create a check box, node link, and get node status var checkBx = ''; var nodeLink = $('' + node + '').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, '');