mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-17 11:50:32 +00:00
fix error 4989: The error message of bmcdiscover is disordered when it hit database problem
This commit is contained in:
@ -1053,7 +1053,7 @@ sub bmcdiscovery_ipmi {
|
||||
if ($output =~ $bmcstr) {
|
||||
store_fd({data=>1}, $fd);
|
||||
|
||||
if ($output =~ /RAKP 2 message indicates an error : (.+)\nError: (.+)/) {
|
||||
if ($output =~ /RAKP \d+ message indicates an error : (.+)\nError: (.+)/) {
|
||||
xCAT::MsgUtils->message("W", { data => ["$2: $1 for $ip"] }, $::CALLBACK);
|
||||
return;
|
||||
}
|
||||
@ -1127,6 +1127,9 @@ sub bmcdiscovery_ipmi {
|
||||
} elsif ($output =~ /RAKP \S* \S* is invalid/) {
|
||||
xCAT::MsgUtils->message("W", { data => ["BMC password is incorrect for $ip"] }, $::CALLBACK);
|
||||
return;
|
||||
} else {
|
||||
xCAT::MsgUtils->message("W", { data => ["Unknown error get from $ip"] }, $::CALLBACK);
|
||||
return;
|
||||
}
|
||||
|
||||
display_output($opz,$opw,$mtms_node,$mac_node,$node_data,"ipmi",$request_command);
|
||||
|
Reference in New Issue
Block a user