Merge pull request #243 from letsencrypt/fix_bug_from_220

fix domains bug introduced in 220
This commit is contained in:
James Kasten
2015-02-13 02:40:15 -08:00
+4 -5
View File
@@ -138,8 +138,7 @@ def main(): # pylint: disable=too-many-branches
else: else:
auth = client.determine_authenticator(config) auth = client.determine_authenticator(config)
if args.domains is None: doms = choose_names(installer) if args.domains is None else args.domains
domains = choose_names(installer)
# Prepare for init of Client # Prepare for init of Client
if args.privkey is None: if args.privkey is None:
@@ -157,11 +156,11 @@ def main(): # pylint: disable=too-many-branches
# I am not sure the best way to handle all of the unimplemented abilities, # I am not sure the best way to handle all of the unimplemented abilities,
# but this code should be safe on all environments. # but this code should be safe on all environments.
if auth is not None: if auth is not None:
cert_file, chain_file = acme.obtain_certificate(domains) cert_file, chain_file = acme.obtain_certificate(doms)
if installer is not None and cert_file is not None: if installer is not None and cert_file is not None:
acme.deploy_certificate(domains, privkey, cert_file, chain_file) acme.deploy_certificate(doms, privkey, cert_file, chain_file)
if installer is not None: if installer is not None:
acme.enhance_config(domains, args.redirect) acme.enhance_config(doms, args.redirect)
def display_eula(): def display_eula():