diff --git a/OTcerts.py b/OTcerts.py index 310cc89..745d355 100644 --- a/OTcerts.py +++ b/OTcerts.py @@ -134,11 +134,11 @@ def get_domain_list(config, ot_conn, dns_conn): def acme_request(config, domain_name, acme_test='DNS-01', dryrun=False, domains_list=None): args = config['certbot']['base_args'] - if dryrun: - args += " --dry-run " - args += "-m {} ".format(config['certbot']['email']) - args += "--server {} ".format(config['certbot']['server']) + args += " -m {} ".format(config['certbot']['email']) + args += "--server {} ".format(config['certbot']['server']) + if dryrun: + args += "--dry-run " if acme_test == 'DNS-01': args += " --manual certonly " args += "--preferred-challenges dns-01 "