From 16f30d6bf0e5483b089c9a31e9236daecc8a537b Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Sat, 7 May 2016 09:54:46 -0400 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/bmcdiscover.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/bmcdiscover.pm b/xCAT-server/lib/xcat/plugins/bmcdiscover.pm index f23fe5fcb..8042ba942 100644 --- a/xCAT-server/lib/xcat/plugins/bmcdiscover.pm +++ b/xCAT-server/lib/xcat/plugins/bmcdiscover.pm @@ -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) )