summaryrefslogtreecommitdiffstats
path: root/openstack/common/plugin/callbackplugin.py
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2013-02-03 21:17:02 +0000
committerMark McLoughlin <markmc@redhat.com>2013-02-18 16:28:21 +0000
commitbcba9e708e2067caca316a8499aa659f9802eeec (patch)
treea7e69a8dd15fb5a3f60aed1688db4c22468abc32 /openstack/common/plugin/callbackplugin.py
parent538721d3fdab613ed3d3ab33df123f90da173e93 (diff)
downloadoslo-bcba9e708e2067caca316a8499aa659f9802eeec.tar.gz
oslo-bcba9e708e2067caca316a8499aa659f9802eeec.tar.xz
oslo-bcba9e708e2067caca316a8499aa659f9802eeec.zip
Add ConfigFilter wrapper class
Implements blueprint cfg-filter-view At the moment, if a module requires a configuration option from another module, we do: CONF.import_opt('source.module', 'option_name') but, in fact, all options from the imported module are available for use. The new ConfigFilter class makes it possible to enforce which options are available within a module e.g. with CONF = cfgfilter.ConfigFilter(cfg.CONF) CONF.import_opt('foo', 'source.module') CONF.register_opt(StrOpt('bar')) then the foo and bar options would be the only options available via this CONF object while still being available via the global cfg.CONF object. Change-Id: Ie3aa2cd090a626da8afd27ecb78853cbf279bc8b
Diffstat (limited to 'openstack/common/plugin/callbackplugin.py')
0 files changed, 0 insertions, 0 deletions