From d2f839c202ad9883da77a9dbbd1ff7c7a8af2b10 Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Tue, 5 Dec 2017 15:59:14 -0500 Subject: [PATCH] Display first [openbmc_debug] when entering openbmc.pm --- xCAT-server/lib/xcat/plugins/openbmc.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index 40d739bb3..61c810a63 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -585,6 +585,12 @@ sub preprocess_request { $callback = shift; + if ($::XCATSITEVALS{xcatdebugmode}) { $xcatdebugmode = $::XCATSITEVALS{xcatdebugmode} } + + if ($xcatdebugmode) { + process_debug_info("OpenBMC"); + } + my $command = $request->{command}->[0]; my $noderange = $request->{node}; my $extrargs = $request->{arg}; @@ -705,8 +711,6 @@ sub process_request { @exargs = @$extrargs; } - if ($::XCATSITEVALS{xcatdebugmode}) { $xcatdebugmode = $::XCATSITEVALS{xcatdebugmode} } - my $check = parse_node_info($noderange); my $rst = parse_command_status($command, \@exargs); return if ($rst); @@ -1739,9 +1743,6 @@ sub fork_process_login { sleep(1); $rst = 1; } elsif ($child == 0) { - if ($xcatdebugmode) { - process_debug_info($node, "Attempting to login"); - } exit(login_request($node)); } else { $login_pid_node{$child} = $node;