Oh, forgot to mention what you need here is deprecated_group
sql_opts = [ cfg.StrOpt('sql_connection', default=..., help=..., secret=True, deprecated_group='DEFAULT'), ]
CONF.register_opts(sql_opts, group='database')
It's pretty horrible that you need to add deprecated_group to all of these, maybe we could do e.g.
class DbOpt(cfg.StrOpt): def __init__(self, name, **kwargs): super(DbOpt, self).__init__(name, deprecated_group='DEFAULT', **kwargs)
Oh, forgot to mention what you need here is deprecated_group
sql_opts = [ StrOpt( 'sql_connection ',
default= ...,
help=.. .,
secret= True,
deprecated_ group=' DEFAULT' ),
cfg.
]
CONF. register_ opts(sql_ opts, group='database')
It's pretty horrible that you need to add deprecated_group to all of these, maybe we could do e.g.
class DbOpt(cfg.StrOpt):
super( DbOpt, self)._ _init__ (name, deprecated_ group=' DEFAULT' , **kwargs)
def __init__(self, name, **kwargs):