From 2156528baf35a11f147d2b14f7e1b02c8f5a6459 Mon Sep 17 00:00:00 2001 From: chenglch Date: Mon, 5 Mar 2018 13:59:28 +0800 Subject: [PATCH] Remove the spaces at the end for `makegocons -q` Tidy the output --- xCAT-server/lib/perl/xCAT/Goconserver.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/perl/xCAT/Goconserver.pm b/xCAT-server/lib/perl/xCAT/Goconserver.pm index 211808a2f..a28d398e0 100644 --- a/xCAT-server/lib/perl/xCAT/Goconserver.pm +++ b/xCAT-server/lib/perl/xCAT/Goconserver.pm @@ -25,7 +25,7 @@ my $bmc_cons_port = "2200"; my $isSN = xCAT::Utils->isServiceNode(); use constant CONSOLE_LOG_DIR => "/var/log/consoles"; -use constant PRINT_FORMAT => "%-32s %-32s %-64s"; +use constant PRINT_FORMAT => "%-32s %-32s %s"; unless (-d CONSOLE_LOG_DIR) { mkpath(CONSOLE_LOG_DIR, 0, 0755); } @@ -385,7 +385,7 @@ sub list_nodes { xCAT::MsgUtils->message("E", $rsp, $callback); next; } - $rsp->{data}->[0] = sprintf(PRINT_FORMAT, $node->{name}, $node->{host}, $node->{state}); + $rsp->{data}->[0] = sprintf(PRINT_FORMAT, $node->{name}, $node->{host}, substr($node->{state}, 0, 16)); xCAT::MsgUtils->message("I", $rsp, $callback); } my %node_hash = %{$node_map};