mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
Fix "cluster show --csv" output
This commit is contained in:
@@ -109,7 +109,6 @@ do_cluster_show(void)
|
|||||||
if (PQstatus(cell->node_info->conn) == CONNECTION_OK)
|
if (PQstatus(cell->node_info->conn) == CONNECTION_OK)
|
||||||
{
|
{
|
||||||
cell->node_info->node_status = NODE_STATUS_UP;
|
cell->node_info->node_status = NODE_STATUS_UP;
|
||||||
|
|
||||||
cell->node_info->recovery_type = get_recovery_type(cell->node_info->conn);
|
cell->node_info->recovery_type = get_recovery_type(cell->node_info->conn);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -385,7 +384,7 @@ do_cluster_show(void)
|
|||||||
|
|
||||||
/* emit any warnings */
|
/* 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;
|
ItemListCell *cell = NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user