From 6d8bfba2f371af5464c95d6d7e855b09210099de Mon Sep 17 00:00:00 2001 From: yinle Date: Fri, 17 Feb 2012 05:59:11 +0000 Subject: [PATCH] minor fix git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11604 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCmac.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/PPCmac.pm b/perl-xCAT/xCAT/PPCmac.pm index 0f1be50cc..7dbdcb23a 100644 --- a/perl-xCAT/xCAT/PPCmac.pm +++ b/perl-xCAT/xCAT/PPCmac.pm @@ -398,7 +398,7 @@ sub do_getmacs { ###################################### # Split results into array ###################################### - return( [$Rc, split( /\n/, $result)] ); + return $Rc; } @@ -679,9 +679,10 @@ sub getmacs { # Manually collect MAC addresses. ######################################### $result = do_getmacs( $request, $d, $exp, $name, $node ); + $Rc = shift(@$result); } $sitetab->close; - $Rc = shift(@$result); + ################################## # Form string from array results