From dac4eb621ebe44429ee8a63d49c572e1a47de527 Mon Sep 17 00:00:00 2001 From: yinle Date: Thu, 24 Feb 2011 11:57:44 +0000 Subject: [PATCH] Fix bug 3190451:lsslp -s BPA/FSP output issue with IP address and hostname git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8920 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/lsslp.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index 6dcbfdb83..6c59186d2 100644 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -2132,7 +2132,10 @@ sub parse_responses { { $outhash{$hostname} = \@severnode1; } - + if ( length( $severnode1[4] ) > $$length ) { + $$length = length( $severnode1[4] ); + } + #begin to define another fsp/bpa $hostname = undef; foreach (@result) { @@ -2148,7 +2151,10 @@ sub parse_responses { { $outhash{$hostname} = \@severnode2; } - + if ( length( $severnode2[4] ) > $$length ) { + $$length = length( $severnode2[4] ); + } + ########################################### # begin to define frame and cec # As default, use Server-$result[1]-SN$result[2] as hostname