]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
heat-db-setup read engine config file for DB connection details
authorSteven Hardy <shardy@redhat.com>
Fri, 7 Dec 2012 17:16:04 +0000 (17:16 +0000)
committerSteven Hardy <shardy@redhat.com>
Fri, 7 Dec 2012 17:16:04 +0000 (17:16 +0000)
commit14d8a7a19f89bbafe9a5017dbb581051708ce58a
treed8e5958082dff40068fc58846a6303d0d47fa0af
parent705469b5a5a307e48817cae99f5c69e1e977b4f3
heat-db-setup read engine config file for DB connection details

Currently heat-db-setup, or rather the underlying python -m heat.db.sqlalchemy.manage
has a hard-coded database connection URL, so DB setup will fail if a non-default
configuration exists in /etc/heat/heat-engine.conf.

This attempts to read the sql_connection from the DEFAULT section of heat-engine.conf
falling back to the old default string on failure.

bug/1087741

Change-Id: Ieb41503a58ee0804d79a32a8286268803c9f456c
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat/db/sqlalchemy/manage.py