fix bug 3177471:lsslp with -r (raw) flag displays duplicate entries
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8822 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
0bb2feceb1
commit
66117158c2
@ -1155,10 +1155,18 @@ sub format_output {
|
||||
###########################################
|
||||
# -r flag for raw response format
|
||||
###########################################
|
||||
my %rawhash = ();
|
||||
if ( exists( $opt{r} )) {
|
||||
foreach ( keys %$outhash ) {
|
||||
$result .= "@{ $outhash->{$_}}[9]\n";
|
||||
#$result .= "@{ $outhash->{$_}}[9]\n";
|
||||
my $raw = @{$outhash->{$_}}[9];
|
||||
$rawhash{$raw} = 1;
|
||||
}
|
||||
|
||||
foreach ( keys %rawhash ) {
|
||||
$result .= "$_\n";
|
||||
}
|
||||
|
||||
send_msg( $request, 0, $result );
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user