2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

check exclusion expicitly

This commit is contained in:
Saurabh 2018-07-02 12:00:58 +05:30
parent 41e227cff1
commit 14f56d1177

View File

@ -128,8 +128,10 @@ def setup_wildcard_ssl(domain, email, bench_path, exclude_base_domain):
domain_list.append('*.{0}'.format(domain))
else:
# include base domain based on flag
if not exclude_base_domain:
domain_list.append(domain.replace('*.', ''))
domain_list.append(domain.replace('*.', ''))
if exclude_base_domain:
domain_list.remove(domain.replace('*.', ''))
return domain_list