Merge "Remove fallback to DEFAULT section"

This commit is contained in:
Zuul 2024-10-09 18:09:08 +00:00 committed by Gerrit Code Review
commit fcf56740fc
2 changed files with 12 additions and 6 deletions

View File

@ -61,13 +61,11 @@ _options = [
help=_('The relative or absolute path of a file that maps '
'roles to permissions for a given service. Relative '
'paths must be specified in relation to the '
'configuration file setting this option.'),
deprecated_group='DEFAULT'),
'configuration file setting this option.')),
cfg.StrOpt('policy_default_rule',
default='default',
help=_('Default rule. Enforced when a requested rule is not '
'found.'),
deprecated_group='DEFAULT'),
'found.')),
cfg.MultiStrOpt('policy_dirs',
default=['policy.d'],
help=_('Directories where policy configuration files are '
@ -76,8 +74,7 @@ _options = [
'option, or absolute paths. The file defined by '
'policy_file must exist for these directories to '
'be searched. Missing or empty directories are '
'ignored.'),
deprecated_group='DEFAULT'),
'ignored.')),
cfg.StrOpt('remote_content_type',
choices=('application/x-www-form-urlencoded',
'application/json'),

View File

@ -0,0 +1,9 @@
---
upgrade:
- |
The following options are no longer loaded from the ``[DEFAULT]`` section.
Use the ``[oslo_policy]`` section instead.
- ``policy_file``
- ``policy_default_rule``
- ``policy_dirs``