mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:41:53 +02:00
Tell the user what kind of conf files were missing domains
This commit is contained in:
@@ -103,8 +103,12 @@ def choose_names(installer):
|
|||||||
names = get_valid_domains(domains)
|
names = get_valid_domains(domains)
|
||||||
|
|
||||||
if not names:
|
if not names:
|
||||||
|
server = ""
|
||||||
|
if hasattr(installer, "name") and installer.name:
|
||||||
|
server = "{0} ".format(installer.name)
|
||||||
|
server = server[0].upper() + server[1:] # capitalise server name
|
||||||
return _choose_names_manually(
|
return _choose_names_manually(
|
||||||
"No names were found in your configuration files. ")
|
"No names were found in your {0}configuration files. ".format(server))
|
||||||
|
|
||||||
code, names = _filter_names(names)
|
code, names = _filter_names(names)
|
||||||
if code == display_util.OK and names:
|
if code == display_util.OK and names:
|
||||||
|
|||||||
Reference in New Issue
Block a user