From a481ca7ce2030f279487b3cd224c5e9c3a63a7bb Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Mon, 5 Feb 2018 00:52:58 +0000 Subject: [PATCH] "repmgr node status": correct upstream node info (#363) repmgr was printing the name and ID of this node instead of its upstream Signed-off-by: Tony Finch --- repmgr-action-node.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repmgr-action-node.c b/repmgr-action-node.c index 882785b4..c3002672 100644 --- a/repmgr-action-node.c +++ b/repmgr-action-node.c @@ -314,8 +314,8 @@ do_node_status(void) key_value_list_set_format(&node_status, "Upstream node", "%s (ID: %i)", - node_info.node_name, - node_info.node_id); + node_info.upstream_node_name, + node_info.upstream_node_id); get_replication_info(conn, &replication_info);