]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
neutron-db-manage finds automatically config file
authorJakub Libosvar <libosvar@redhat.com>
Tue, 14 Oct 2014 14:36:02 +0000 (16:36 +0200)
committerJakub Libosvar <libosvar@redhat.com>
Mon, 20 Oct 2014 16:22:40 +0000 (18:22 +0200)
This patch lets oslo.config find config file containing connection
string to database by itself. Config file can be overriden by
--config-file cli parameter as it was before, so it is backward
compatible.

Change-Id: Iacbcd65edfe9ef268a0caf80641e0937a99b06a7
Closes-Bug: 1381100

neutron/db/migration/cli.py

index ca83ecdf2adacb0d0e8f4b5be439774cc8550600..96a0da705d08d324b41fb6d3717f62ea0cdbe3fa 100644 (file)
@@ -172,6 +172,6 @@ def main():
     # attach the Neutron conf to the Alembic conf
     config.neutron_config = CONF
 
-    CONF()
+    CONF(project='neutron')
     #TODO(gongysh) enable logging
     CONF.command.func(config, CONF.command.name)