mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 16:22:18 -04:00
add prefix about names found in config files
This commit is contained in:
parent
875b94d45a
commit
7eeeea6a6f
1 changed files with 11 additions and 3 deletions
|
|
@ -103,7 +103,8 @@ def choose_names(installer):
|
|||
names = get_valid_domains(domains)
|
||||
|
||||
if not names:
|
||||
return _choose_names_manually()
|
||||
return _choose_names_manually(
|
||||
"No names were found in your configuration files. ")
|
||||
|
||||
code, names = _filter_names(names)
|
||||
if code == display_util.OK and names:
|
||||
|
|
@ -146,10 +147,17 @@ def _filter_names(names):
|
|||
return code, [str(s) for s in names]
|
||||
|
||||
|
||||
def _choose_names_manually():
|
||||
"""Manually input names for those without an installer."""
|
||||
def _choose_names_manually(prompt_prefix=""):
|
||||
"""Manually input names for those without an installer.
|
||||
|
||||
:param str prompt_prefix: string to prepend to prompt for domains
|
||||
|
||||
:returns: list of provided names
|
||||
:rtype: `list` of `str`
|
||||
|
||||
"""
|
||||
code, input_ = z_util(interfaces.IDisplay).input(
|
||||
prompt_prefix +
|
||||
"Please enter in your domain name(s) (comma and/or space separated) ",
|
||||
cli_flag="--domains")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue