diff options
-rw-r--r-- | .testr.conf | 4 | ||||
-rw-r--r-- | oslo_config/cfgfilter.py | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/.testr.conf b/.testr.conf deleted file mode 100644 index 1641f86..0000000 --- a/.testr.conf +++ /dev/null @@ -1,4 +0,0 @@ -[DEFAULT] -test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 ${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION -test_id_option=--load-list $IDFILE -test_list_option=--list 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. |