From c1ff510fe4835c0e912cba2586b53c8890a4e550 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 27 Jun 2008 14:01:26 +0000 Subject: [PATCH] -Fix issue where BMC issued error may be overwritten by less informative error git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1799 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ipmi.pm | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 9f2b13aeb..08ccfc13d 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -4163,17 +4163,19 @@ sub activatesession { $error = "Requested maximum privilege level exceeds user and/of channel privilege limit"; } - $auth = $response[37]; - if($auth == 0x00) { - $authoffset=16; - } - elsif($auth == 0x02) { - } - elsif($auth == 0x04) { - } - else { - $error = "activate session requested unsupported Authentication Type Support"; - } + unless ($error) { + $auth = $response[37]; + if($auth == 0x00) { + $authoffset=16; + } + elsif($auth == 0x02) { + } + elsif($auth == 0x04) { + } + else { + $error = "activate session requested unsupported Authentication Type Support"; + } + } ###check @session_id = @response[38,39,40,41];