mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 11:42:05 +00:00
fix issue 2296, get correct mtms for B&S
This commit is contained in:
parent
c2d522ddf3
commit
a1d590f85f
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user