mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-24 15:05:36 +00:00
Merge pull request #1071 from whowutwut/bmc_msg
Make the error message on bmcdiscovery make more sense using IP instead of generated node name
This commit is contained in:
@ -888,10 +888,10 @@ sub bmcdiscovery_ipmi {
|
||||
$node =~ s/(.*)/\L$1/g;
|
||||
}
|
||||
} elsif ($output =~ /error : unauthorized name/){
|
||||
xCAT::MsgUtils->message("E", {data=>["BMC username is incorrect for $node"]}, $::CALLBACK);
|
||||
xCAT::MsgUtils->message("E", {data=>["BMC username is incorrect for $ip"]}, $::CALLBACK);
|
||||
return 1;
|
||||
} elsif ($output =~ /RAKP \S* \S* is invalid/) {
|
||||
xCAT::MsgUtils->message("E", {data=>["BMC password is incorrect for $node"]}, $::CALLBACK);
|
||||
xCAT::MsgUtils->message("E", {data=>["BMC password is incorrect for $ip"]}, $::CALLBACK);
|
||||
return 1;
|
||||
}
|
||||
if ( defined($opz) || defined($opw) )
|
||||
|
Reference in New Issue
Block a user