From f6dd483a6dd39d33ce4aa86be111c553ed22100f Mon Sep 17 00:00:00 2001 From: jjhua Date: Tue, 15 Mar 2011 03:26:17 +0000 Subject: [PATCH] fixed bug 3212455, remove the side of the cec from the output of rscan git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9048 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPscan.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/FSPscan.pm b/perl-xCAT/xCAT/FSPscan.pm index 21ce5a590..0d164f0c5 100644 --- a/perl-xCAT/xCAT/FSPscan.pm +++ b/perl-xCAT/xCAT/FSPscan.pm @@ -133,9 +133,13 @@ sub enumerate { my $side = $6; $server = $fsp; $fname = $fsp; - my $ips ="$7,$8"; + my $ips ="$7,$8"; + if($$d[4] =~ /^cec$/) { + $side=""; + } push @values, join( ",", - $$d[4],$node_name,$cageid,$model,$serial,$side, $server,$prof,$fname, $7); + $$d[4],$node_name,$cageid,$model,$serial,$side, $server,$prof,$fname, $ips); + # $$d[4],$node_name,$cageid,$model,$serial,$side, $server,$prof,$fname, $7); # "fsp",$node_name,$cageid,$model,$serial,$side, $server,$prof,$fname, $7); #"fsp",$fsp,$cageid,$model,$serial,$side,$server,$prof,$fname,$ips );