diff --git a/letsencrypt/cli.py b/letsencrypt/cli.py index 84723da3c..dc095a42e 100644 --- a/letsencrypt/cli.py +++ b/letsencrypt/cli.py @@ -1294,6 +1294,7 @@ class WebrootPathProcessor(argparse.Action): # pylint: disable=missing-docstring "them must precede all domain flags") config.webroot_path.append(webroot) + _undot = lambda domain: domain[:-1] if domain.endswith('.') else domain def _process_domain(config, domain_arg, webroot_path=None): @@ -1317,7 +1318,7 @@ class WebrootMapProcessor(argparse.Action): # pylint: disable=missing-docstring def __call__(self, parser, config, webroot_map_arg, option_string=None): webroot_map = json.loads(webroot_map_arg) for domains, webroot_path in webroot_map.iteritems(): - _process_domain(config, str(domains), [str(webroot_path)]) + _process_domain(config, domains, [webroot_path]) class DomainFlagProcessor(argparse.Action): # pylint: disable=missing-docstring