From 7ab8fbcc0942c25ccac0ed434a94e473653e74f1 Mon Sep 17 00:00:00 2001 From: yinle Date: Fri, 25 Mar 2011 08:02:33 +0000 Subject: [PATCH] Fix a bug. Modify the process of creating Frame/CEC definition. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9151 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/lsslp.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index 98ab90a59..fc882c880 100644 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -2068,7 +2068,6 @@ sub parse_responses { "slot", "ip-address" ); - my $primary; my %fid1; my %fid2; my %cid; @@ -2125,10 +2124,8 @@ sub parse_responses { my $val = $1; if (( $_ =~ /^slot$/ ) and ( $val == 0 )) { push @result, "B"; - $primary = 0; } elsif (( $_ =~ /^slot$/ ) and ( $val == 1 )) { push @result, "A"; - $primary = 1; } else { push @result, $val; } @@ -2212,8 +2209,7 @@ sub parse_responses { ########################################### $hostname = undef; $host = "Server-$result[1]-SN$result[2]"; - #unless ( exists( $outhash{$host} )) - if ( $primary ) + unless ( exists( $outhash{$host} )) { if ( $type eq SERVICE_BPA ) {