From 8a97e9d79d63f8d66211ba070bc0b32638f8d295 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Wed, 30 Mar 2011 07:38:27 +0000 Subject: [PATCH] run lsvm when the machine type is s390 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9181 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/nodes/nodes.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-UI/js/nodes/nodes.js b/xCAT-UI/js/nodes/nodes.js index 44c6686ee..ea183887c 100644 --- a/xCAT-UI/js/nodes/nodes.js +++ b/xCAT-UI/js/nodes/nodes.js @@ -896,12 +896,18 @@ function loadNodes(data) { // Get index of hcp column var i = $.inArray('hcp', sorted); + var archCol = $.inArray('arch', sorted); if (i) { // Get hardware control point var rows = nodesTable.object().find('tbody tr'); var hcps = new Object(); - for (var j in rows) { + var rowsNum = rows.size(); + for (var j = 0; j < rowsNum; j++) { var val = rows.eq(j).find('td').eq(i).html(); + var archval = rows.eq(j).find('td').eq(archCol).html(); + if (-1 == archval.indexOf('390')){ + continue; + } hcps[val] = 1; }