f.write(sockets_conf)
with open(os.path.join('nginx/sites-available', 'conifer.conf'), 'w') as f:
- for host in mutate_test_hostnames():
+ for host in mutate_test_hostnames(test):
f.write(server_block.format(hostname=host))
with open(os.path.join('apache2/sites-available', 'conifer.conf'), 'w') as f:
def generate_certbot(test=True):
"""Generate certbot command"""
certbot = 'certbot --nginx run '
- for host in mutate_test_hostnames():
+ for host in mutate_test_hostnames(test):
if host in missing_test_domains:
continue
certbot = certbot + " -d {hostname}".format(hostname=host)