From c29d0c960a4a1adef43c55948ed32fdb1b4e5c31 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Sun, 3 Dec 2017 23:34:52 -0500 Subject: [PATCH] Only handle 404 and 504 in the login request code, defer the rest to deal_with_response() --- xCAT-server/lib/xcat/plugins/openbmc.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index 75f1d00d5..00c837fb2 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -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; }