mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
Only handle 404 and 504 in the login request code, defer the rest to deal_with_response()
This commit is contained in:
parent
5bf6e1dc83
commit
c29d0c960a
@ -1852,8 +1852,8 @@ sub login_request {
|
||||
my $login_response = $brower->request($login_request);
|
||||
|
||||
# Check the return code
|
||||
if ($login_response->code != 200) {
|
||||
# handle the errors generically
|
||||
if ($login_response->code eq 500 or $login_response->code eq 404) {
|
||||
# handle only 404 and 504 in this code, defer to deal_with_response for the rest
|
||||
xCAT::SvrUtils::sendmsg([1 ,"[" . $login_response->code . "] Login to BMC failed: " . $login_response->status_line . "."], $callback, $node);
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user