From a7689ecd7823a261d097eab77ad563b090d81ad2 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Wed, 29 Jan 2020 14:04:37 +0900 Subject: [PATCH] standby switchover: fix repmgr execution confirmation in --dry-run mode Inexplicably, "localhost" was hard-coded, rather than the remote host name. --- repmgr-action-standby.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/repmgr-action-standby.c b/repmgr-action-standby.c index caad91d5..6e1166dc 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -3827,7 +3827,9 @@ do_standby_switchover(void) if (runtime_options.dry_run == true) { - log_info(_("able to execute \"%s\" on remote host \"localhost\""), progname()); + log_info(_("able to execute \"%s\" on remote host \"%s\""), + progname(), + remote_host); } /*