Remove sqlite_db parameter from set_defaults

oslo.db removed the deprecated sqlite_db option in its set_defaults()
method in [0].  This patch set updates the code and fixes the gating error.

[0] cc64f70105

Change-Id: If31a15fe594243162315cd75f561d11e20fc3241
This commit is contained in:
Tin Lam 2017-05-22 21:18:20 -05:00
parent 98a7264bd3
commit 2ce4b26667
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ _DEFAULT_SQL_CONNECTION = ('sqlite:///' +
paths.state_path_def('gluon.sqlite'))
cfg.CONF.register_opts(sql_opts, 'database')
db_options.set_defaults(cfg.CONF, _DEFAULT_SQL_CONNECTION, 'gluon.sqlite')
db_options.set_defaults(
cfg.CONF, connection=_DEFAULT_SQL_CONNECTION)
class GluonBase(models.TimestampMixin, models.ModelBase):