mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-24 23:15:30 +00:00
Changed getmacs output format - Line #304
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@194 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@ -232,7 +232,6 @@ sub getmacs {
|
||||
my $exp = shift;
|
||||
my $opt = $request->{opt};
|
||||
my $hwtype = @$exp[2];
|
||||
my @output;
|
||||
my $result;
|
||||
|
||||
#########################################
|
||||
@ -303,11 +302,8 @@ sub getmacs {
|
||||
# and not with others.
|
||||
#####################################
|
||||
my $values;
|
||||
|
||||
foreach ( @$result ) {
|
||||
if ( /^#\s*Type|^ent/ ) {
|
||||
$values.= "\n$_";
|
||||
}
|
||||
$values.= "\n$_";
|
||||
}
|
||||
return( [[$name,$values]] );
|
||||
}
|
||||
|
Reference in New Issue
Block a user