oslo.policy/oslo_policy
Mateusz Kowalski 3e38206001 Avoid redundant policy syntax checks
Introduce a private variable inside Enforcer class to remember
status of the last policy syntax checks in order to avoid
redundant calls to the check_rules() method.

Having this flag makes the whole rules mechanism faster, as under
certain conditions check_rules() method was being executed
multiple times even when not needed.

Change-Id: Id3992fc0cb567451049a12ebdc6851e737573bb8
Closes-bug: #1723030
Co-Authored-By: Ben Nemec <bnemec@redhat.com>
(cherry picked from commit 909a1ea3a7)
2018-07-20 11:32:55 +00:00
..
locale Imported Translations from Zanata 2016-10-24 06:24:36 +00:00
tests Avoid redundant policy syntax checks 2018-07-20 11:32:55 +00:00
__init__.py exported from oslo-incubator by graduate.sh 2014-12-09 14:40:01 -03:00
_cache_handler.py Add missing parameter description in module _cache_handler 2016-11-02 02:39:38 +00:00
_checks.py Don't crash on RoleCheck when roles not present 2016-01-02 11:59:49 -08:00
_i18n.py Update URLs in documents according to document migration 2017-07-12 23:01:31 +08:00
_parser.py Remove log translations 2017-03-22 14:13:15 +00:00
fixture.py Custom fixture to avoid external call in HttpCheck 2015-10-08 16:50:01 -07:00
generator.py Add Sphinx extension to pretty-print modules 2017-04-27 15:10:25 +01:00
opts.py Doc: declare YAML/JSON support 2016-09-22 17:09:59 +08:00
policy.py Avoid redundant policy syntax checks 2018-07-20 11:32:55 +00:00
shell.py Remove dead code and use default value of argparse. 2017-01-02 11:21:44 +01:00
sphinxext.py Merge "fix formatting for empty defaults" into stable/pike 2017-08-01 07:01:12 +00:00
sphinxpolicygen.py Add sphinx extension to build sample policy 2016-09-28 10:59:14 +01:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:22 -05:00