Updated glance.registry.db for bug 904863

Changed sql-connection to sql_connection, updated add_group to register_group,
and removed the 'registrydb' group designator.

Change-Id: Id9bf38f067806b6f81b23296ed73774e820a577b
This commit is contained in:
Brian Lamar 2011-12-17 15:11:14 -05:00
parent ea99d1c8f3
commit 1239f61c2b

View File

@ -27,13 +27,12 @@ def add_options(conf):
:param conf: A ConfigOpts object
:retval None
"""
conf.add_group(cfg.OptGroup('registrydb',
conf.register_group(cfg.OptGroup('registrydb',
title='Registry Database Options',
help='The following configuration options '
'are specific to the Glance image '
'registry database.'))
conf.register_cli_opt(cfg.StrOpt('sql-connection',
group='registrydb',
conf.register_cli_opt(cfg.StrOpt('sql_connection',
metavar='CONNECTION',
help='A valid SQLAlchemy connection '
'string for the registry database. '