From 3e9ce6fe38118c9a93f697492ccdc639e54fa9d8 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 15 Aug 2017 22:07:07 +0900 Subject: [PATCH] Fix "repmgr node check --role" output --- repmgr-action-node.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/repmgr-action-node.c b/repmgr-action-node.c index f63287f9..4b1044f8 100644 --- a/repmgr-action-node.c +++ b/repmgr-action-node.c @@ -696,9 +696,10 @@ do_node_check_role(PGconn *conn, OutputMode mode, t_node_info *node_info, CheckS } else { - printf("%s (%s)\n", - output_check_status(status), - details.data); + printf("%s", output_check_status(status)); + if (strlen(details.data)) + printf(" (%s)", details.data); + puts(""); } default: break;