2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-10 00:37:51 +00:00

[fix] check for unicode type while creating nginx conf

This commit is contained in:
Saurabh 2017-04-25 12:29:41 +05:30
parent 080ca173a6
commit 44a566b9ec

View File

@ -159,7 +159,7 @@ def get_sites_with_config(bench_path):
if dns_multitenant and site_config.get('domains'):
for domain in site_config.get('domains'):
# domain can be a string or a dict with 'domain', 'ssl_certificate', 'ssl_certificate_key'
if isinstance(domain, str):
if isinstance(domain, str) or isinstance(domain, unicode):
domain = { 'domain': domain }
domain['name'] = site