mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
repmgr: add usage warnings for --no-conninfo-password
This commit is contained in:
10
repmgr.c
10
repmgr.c
@@ -6982,6 +6982,11 @@ check_parameters_for_action(const int action)
|
||||
item_list_append(&cli_warnings, _("--no-upstream-connection only effective in Barman mode"));
|
||||
}
|
||||
|
||||
if (*runtime_options.upstream_conninfo && runtime_options.no_conninfo_password == true)
|
||||
{
|
||||
item_list_append(&cli_warnings, _("--no-conninfo-password ineffective when specifying --upstream-conninfo"));
|
||||
}
|
||||
|
||||
config_file_required = false;
|
||||
break;
|
||||
|
||||
@@ -7075,6 +7080,11 @@ check_parameters_for_action(const int action)
|
||||
{
|
||||
item_list_append(&cli_warnings, _("--upstream-conninfo can only be used when executing STANDBY CLONE"));
|
||||
}
|
||||
|
||||
if (runtime_options.no_conninfo_password == true)
|
||||
{
|
||||
item_list_append(&cli_warnings, _("--no-conninfo-password can only be used when executing STANDBY CLONE"));
|
||||
}
|
||||
}
|
||||
|
||||
/* Warn about parameters which apply to STANDBY REGISTER only */
|
||||
|
||||
Reference in New Issue
Block a user