From 44a566b9ecdab09f357bae1970fabbccb118bca4 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Tue, 25 Apr 2017 12:29:41 +0530 Subject: [PATCH] [fix] check for unicode type while creating nginx conf --- bench/config/nginx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/config/nginx.py b/bench/config/nginx.py index 37e76a03..d3ba4c97 100644 --- a/bench/config/nginx.py +++ b/bench/config/nginx.py @@ -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