mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	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:
		| @@ -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; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user