[FIX] runbot: correct sql-db uri generation

This commit is contained in:
Christophe Simonis 2014-09-08 11:31:37 +02:00
parent e31fc72852
commit f13e0aabe3

View File

@ -687,7 +687,7 @@ class runbot_build(osv.osv):
if grep(build.server("tools/config.py"), "log-db"):
logdb = cr.dbname
if grep(build.server('sql_db.py'), 'allow_uri'):
logdb = 'postgres://{cfg.db_user}:{cfg.db_password}@{cfg.db_host}/{db}'.format(cfg=config, db=cr.dbname)
logdb = 'postgres://{cfg[db_user]}:{cfg[db_password]}@{cfg[db_host]}/{db}'.format(cfg=config, db=cr.dbname)
cmd += ["--log-db=%s" % logdb]
# coverage