From 19684f965bcdb6c738648c71c5d0ba72ee4bc291 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 17 Aug 2017 15:05:04 +0900 Subject: [PATCH] "standby switchover": actually abort if SSH connection not possible --- repmgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/repmgr.c b/repmgr.c index 95db7ec4..f6a0ebb2 100644 --- a/repmgr.c +++ b/repmgr.c @@ -4973,7 +4973,9 @@ do_standby_switchover(void) if (r != 0) { - log_err(_("unable to connect via SSH to host %s, user %s\n"), remote_host, runtime_options.remote_user); + log_err(_("unable to connect via SSH to host \"%s\", user \"%s\"\n"), + remote_host, runtime_options.remote_user); + exit(ERR_BAD_CONFIG); } if (get_pg_setting(remote_conn, "data_directory", remote_data_directory) == false)