mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Treat webroot_map -> domain importation as a general property of configs
This commit is contained in:
parent
002845c484
commit
63851bfa52
1 changed files with 6 additions and 6 deletions
|
|
@ -113,12 +113,6 @@ def usage_strings(plugins):
|
|||
|
||||
|
||||
def _find_domains(args, installer):
|
||||
# we get domains from -d, but also from the webroot map...
|
||||
if args.webroot_map:
|
||||
for domain in args.webroot_map.keys():
|
||||
if domain not in args.domains:
|
||||
args.domains.append(domain)
|
||||
|
||||
if not args.domains:
|
||||
domains = display_ops.choose_names(installer)
|
||||
else:
|
||||
|
|
@ -835,6 +829,12 @@ class HelpfulArgumentParser(object):
|
|||
|
||||
# Do any post-parsing homework here
|
||||
|
||||
# we get domains from -d, but also from the webroot map...
|
||||
if parsed_args.webroot_map:
|
||||
for domain in parsed_args.webroot_map.keys():
|
||||
if domain not in parsed_args.domains:
|
||||
parsed_args.domains.append(domain)
|
||||
|
||||
# argparse seemingly isn't flexible enough to give us this behaviour easily...
|
||||
if parsed_args.staging:
|
||||
if parsed_args.server not in (flag_default("server"), constants.STAGING_URI):
|
||||
|
|
|
|||
Loading…
Reference in a new issue