mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-11 15:50:11 +00:00
In the error message, print the IP address for the BMC instead of the generated node
name because the generated node name is not complete and does not make sense
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