mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	fix issue 2296, get correct mtms for B&S
This commit is contained in:
		| @@ -910,19 +910,16 @@ sub bmcdiscovery_ipmi { | ||||
|                 if (($::RUNCMD_RC eq 0) && @fru_output_array) { | ||||
|                     my $fru_output = join(" ", @fru_output_array); | ||||
|  | ||||
|                     if ($fru_cmd_num == 0) { | ||||
|                         if (($fru_output =~ /Product Part Number   :\s*(\S*).*Product Serial        :\s*(\S*)/)) { | ||||
|                             $mtm    = $1; | ||||
|                             $serial = $2; | ||||
|                             last; | ||||
|                         } | ||||
|                     if (($fru_output =~ /Chassis Part Number\s*:\s*(\S*).*Chassis Serial\s*:\s*(\S*)/)) { | ||||
|                         $mtm    = $1; | ||||
|                         $serial = $2; | ||||
|                         last; | ||||
|                     } | ||||
|                     else { | ||||
|                         if (($fru_output =~ /Chassis Part Number\s*:\s*(\S*).*Chassis Serial\s*:\s*(\S*)/)) { | ||||
|                             $mtm    = $1; | ||||
|                             $serial = $2; | ||||
|                             last; | ||||
|                         } | ||||
|  | ||||
|                     if (($fru_output =~ /Product Part Number   :\s*(\S*).*Product Serial        :\s*(\S*)/)) { | ||||
|                         $mtm    = $1; | ||||
|                         $serial = $2; | ||||
|                         last; | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user