mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 08:08:00 +02:00
Treat webroot_map -> domain importation as a general property of configs
This commit is contained in:
+6
-6
@@ -113,12 +113,6 @@ def usage_strings(plugins):
|
|||||||
|
|
||||||
|
|
||||||
def _find_domains(args, installer):
|
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:
|
if not args.domains:
|
||||||
domains = display_ops.choose_names(installer)
|
domains = display_ops.choose_names(installer)
|
||||||
else:
|
else:
|
||||||
@@ -835,6 +829,12 @@ class HelpfulArgumentParser(object):
|
|||||||
|
|
||||||
# Do any post-parsing homework here
|
# 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...
|
# argparse seemingly isn't flexible enough to give us this behaviour easily...
|
||||||
if parsed_args.staging:
|
if parsed_args.staging:
|
||||||
if parsed_args.server not in (flag_default("server"), constants.STAGING_URI):
|
if parsed_args.server not in (flag_default("server"), constants.STAGING_URI):
|
||||||
|
|||||||
Reference in New Issue
Block a user