Skip to content

Commit

Permalink
"standby switchover": actually abort if SSH connection not possible
Browse files Browse the repository at this point in the history
  • Loading branch information
ibarwick committed Aug 17, 2017
1 parent 3530168 commit ce0b411
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion repmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -4967,7 +4967,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)
Expand Down

0 comments on commit ce0b411

Please sign in to comment.