Comment 2 for bug 1171837

Revision history for this message
Mark McLoughlin (markmc) wrote :

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)