From 41e227cff1e32d5c89d5437bff310ab0f479c2be Mon Sep 17 00:00:00 2001 From: Saurabh Date: Mon, 2 Jul 2018 11:56:13 +0530 Subject: [PATCH] [fix] syntax fixes --- bench/commands/setup.py | 2 +- bench/config/lets_encrypt.py | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/bench/commands/setup.py b/bench/commands/setup.py index 8039be26..d88ee80f 100755 --- a/bench/commands/setup.py +++ b/bench/commands/setup.py @@ -135,7 +135,7 @@ def setup_letsencrypt(site, custom_domain, non_interactive): def setup_wildcard_ssl(domain, email, exclude_base_domain): ''' Setup wildcard ssl certificate ''' from bench.config.lets_encrypt import setup_wildcard_ssl - setup_wildcard_ssl(domain, email, bench_path='.', exclude_base_domain) + setup_wildcard_ssl(domain, email, bench_path='.', exclude_base_domain=exclude_base_domain) @click.command('procfile') diff --git a/bench/config/lets_encrypt.py b/bench/config/lets_encrypt.py index 6139504f..9088766e 100755 --- a/bench/config/lets_encrypt.py +++ b/bench/config/lets_encrypt.py @@ -144,13 +144,6 @@ def setup_wildcard_ssl(domain, email, bench_path, exclude_base_domain): if email: email_param = '--email {0}'.format(email) - - print("{path} certonly --manual --preferred-challenges=dns {email_param} \ - --server https://acme-v02.api.letsencrypt.org/directory \ - --agree-tos -d {domain}".format(path=get_certbot_path(), domain=' -d '.join(domain_list), - email_param=email_param)) - return - try: exec_cmd("{path} certonly --manual --preferred-challenges=dns {email_param} \ --server https://acme-v02.api.letsencrypt.org/directory \