This commit is contained in:
Peter Eckersley 2017-03-16 01:14:06 -07:00
parent 6fa521bc5f
commit f259a17549
2 changed files with 3 additions and 2 deletions

View file

@ -526,7 +526,7 @@ class HelpfulArgumentParser(object):
parsed_args = self.parser.parse_args(self.args)
parsed_args.func = self.VERBS[self.verb]
parsed_args.verb = self.verb
parsed_args.renewing = None # an important config property we don't know until later
parsed_args.renewing = "unknown" # an important config property we don't know until later
if self.detect_defaults:
return parsed_args

View file

@ -687,7 +687,8 @@ def certonly(config, plugins):
domains, certname = _find_domains_or_certname(config, installer)
should_get_cert, lineage = _find_cert(config, domains, certname)
le_client = _init_le_client(config, auth, installer) # run after _find_cert for config.renewing if possible
# _init_le_client needs to run after _find_cert for config.renewing if possible
le_client = _init_le_client(config, auth, installer)
if not should_get_cert:
notify = zope.component.getUtility(interfaces.IDisplay).notification