oslo.policy/oslo_policy
Takashi Kajinami 973498106f Add flag to skip undefined rule check
Some components like neutron-lib builds its own sub-enforcer which
enforces policy rules partially. However even these enforcer may load
the full policy rules in the file and this causes a lot of warnings
about "undefined rules".

This introduces a new flag so that users can disable undefined check,
when they know the undefined rules are "expected".

Note that the flag is not formally exposed, because we don't know if
this requirement is common. If we find similar problems with different
components then we may add an argument to __init__ .

Related-Bug: #2048198
Change-Id: Ibb4e8e877640e8488aaffb40560e930b0cbfcbce
2024-01-31 10:41:22 +09:00
..
locale/en_GB/LC_MESSAGES Imported Translations from Zanata 2022-10-17 03:48:17 +00:00
tests Add flag to skip undefined rule check 2024-01-31 10:41:22 +09:00
__init__.py exported from oslo-incubator by graduate.sh 2014-12-09 14:40:01 -03:00
_cache_handler.py Correctly handle IO errors at policy file load 2021-02-09 14:32:07 +00:00
_checks.py Add scope_types attribute to the BaseCheck class 2021-10-05 11:19:50 +02:00
_external.py http/https check rules as stevedore extensions 2017-10-05 08:40:47 -04:00
_i18n.py Update URLs in documents according to document migration 2017-07-12 23:01:31 +08:00
_parser.py Remove all usage of six library 2020-10-06 15:56:50 +08:00
fixture.py Update hacking version 2019-02-13 14:33:45 +08:00
generator.py Fix generation of sample policy files 2022-05-25 11:04:33 +02:00
opts.py Expand set_defaults() to set other config default value 2022-02-08 08:56:41 -06:00
policy.py Add flag to skip undefined rule check 2024-01-31 10:41:22 +09:00
shell.py Ussuri+ is python3 only and update python to python3 2021-05-06 09:44:03 +08:00
sphinxext.py Mark sphinx extensions thread safe 2020-04-13 08:58:54 -05:00
sphinxpolicygen.py Only pass exclude-deprecated when True 2022-04-28 15:27:31 +05:30
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:22 -05:00