[FIX] http/db: fix bug introduced in b34e00540e

b34e00540e was not properly checking if db_name option was in use
This commit is contained in:
Fabien Meghazi
2017-08-03 17:06:55 +02:00
parent ef5c6615aa
commit 96af2823cb
+1 -1
View File
@@ -1491,7 +1491,7 @@ def db_filter(dbs, httprequest=None):
if odoo.tools.config['dbfilter']:
r = odoo.tools.config['dbfilter'].replace('%h', h).replace('%d', d)
dbs = [i for i in dbs if re.match(r, i)]
else:
elif odoo.tools.config['db_name']:
# In case --db-filter is not provided and --database is passed, Odoo will
# use the value of --database as a comma seperated list of exposed databases.
exposed_dbs = set(db.strip() for db in odoo.tools.config['db_name'].split(','))