2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 11:42:05 +00:00

modify response for bmcdiscover when error

This commit is contained in:
XuWei 2017-12-07 00:35:12 -05:00
parent 48922d7a58
commit cf0c5b4666

View File

@ -1215,7 +1215,7 @@ sub bmcdiscovery_openbmc{
if ($login_response->status_line =~ /401 Unauthorized/) {
xCAT::MsgUtils->message("W", { data => ["Invalid username or password for $ip"] }, $::CALLBACK);
} else {
xCAT::MsgUtils->message("W", { data => ["$login_response->status_line for $ip"] }, $::CALLBACK);
xCAT::MsgUtils->message("W", { data => ["Received response " . $login_response->status_line . " for $ip"] }, $::CALLBACK);
}
return;
}