repmgr: add usage warnings for --no-conninfo-password

This commit is contained in:
Ian Barwick
2016-12-08 23:01:46 +09:00
parent f5e3d7c041
commit 083e288ac3

View File

@@ -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 */