From f9f05158d21546a83e9a8e858d3e0f8bec212cbb Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Fri, 1 Sep 2017 00:14:01 +0900 Subject: [PATCH] Fix "cluster show --csv" output --- repmgr-action-cluster.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/repmgr-action-cluster.c b/repmgr-action-cluster.c index b301e69b..5660d214 100644 --- a/repmgr-action-cluster.c +++ b/repmgr-action-cluster.c @@ -109,7 +109,6 @@ do_cluster_show(void) if (PQstatus(cell->node_info->conn) == CONNECTION_OK) { cell->node_info->node_status = NODE_STATUS_UP; - cell->node_info->recovery_type = get_recovery_type(cell->node_info->conn); } else @@ -385,7 +384,7 @@ do_cluster_show(void) /* emit any warnings */ - if (warnings.head != NULL && runtime_options.terse == false) + if (warnings.head != NULL && runtime_options.terse == false && runtime_options.output_mode != OM_CSV) { ItemListCell *cell = NULL;