diff options
author | Zuul <zuul@review.opendev.org> | 2019-06-26 14:39:29 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2019-06-26 14:39:29 +0000 |
commit | 07871e6cce68099a95a9e28cc243ae3ace6e623b (patch) | |
tree | 48534472a7eebff681ef37feaf4519e377ef61eb | |
parent | 0f298265a313262e9eefa35c91b2ed41553f1e07 (diff) | |
parent | a2e8aa9aa9e02b620e513ef2f78761ad7b15daea (diff) | |
download | oslo-config-07871e6cce68099a95a9e28cc243ae3ace6e623b.tar.gz |
Merge "Deprecate ConfigFilter"
-rw-r--r-- | oslo_config/cfgfilter.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/oslo_config/cfgfilter.py b/oslo_config/cfgfilter.py index 89cfa0c..fb08ff1 100644 --- a/oslo_config/cfgfilter.py +++ b/oslo_config/cfgfilter.py @@ -13,6 +13,9 @@ # under the License. r""" +DEPRECATED: This module is deprecated and scheduled for removal in the +U cycle. + There are three use cases for the ConfigFilter class: 1. Help enforce that a given module does not access options registered @@ -128,9 +131,12 @@ we can expose options such that only those options are present:: import collections import itertools +from debtcollector import removals + from oslo_config import cfg +@removals.removed_class('CliOptRegisteredError') class CliOptRegisteredError(cfg.Error): """Raised when registering cli opt not in original ConfigOpts. @@ -146,6 +152,7 @@ class CliOptRegisteredError(cfg.Error): return ret +@removals.removed_class('ConfigFilter') class ConfigFilter(collections.Mapping): """A helper class which wraps a ConfigOpts object. |