]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fixing neutron-db-manage with some options other than upgrade/downgrade
authorronak <ronak.malav.shah@gmail.com>
Wed, 6 Aug 2014 00:40:24 +0000 (17:40 -0700)
committerronak <ronak.malav.shah@gmail.com>
Mon, 11 Aug 2014 16:19:26 +0000 (09:19 -0700)
commit01b2eedd05fb91aa8970c64b753d831257243598
tree4f87c9470a2575f8ed0cf46d09a39e9437553dea
parentebecca030af3541dc2c379f8f51183619d9a6655
Fixing neutron-db-manage with some options other than upgrade/downgrade

"mysql-engine" argument was added to upgrade and downgrade option of
neutron-db-manage.
Reference commit: http://tinyurl.com/mzepbmq

migration environment's run_migration_offline/online() gets called
even for other neutron-db-manage options as well such as current,
history, stamp, branches etc. For those options since the argument
can not be set, it throws oslo.config.cfg.NoSuchOptError.
This fix tries to catch it and set the value accordingly.

Closes-bug: #1353180

Change-Id: I044daf04216ec61245ddb51689f8e50be5666e34
neutron/db/migration/alembic_migrations/env.py