summaryrefslogtreecommitdiff
path: root/oslo_policy/_cache_handler.py
Commit message (Collapse)AuthorAgeFilesLines
* Correctly handle IO errors at policy file loadBubaVV2021-02-091-3/+26
| | | | | | | | | | | For now, policy file unaccessible due to access permission leads to silent failure without any notifictaion. Side effects of it are also affected by policy caching and might be quite confusing, like periodic disappearing of Horizon panels. Proposed patch added handling of such errors. Closes-bug: #1836390 Change-Id: I0d67b6e7c2dcaa63d6bb807f013e5e7334efc715
* Add missing parameter description in module _cache_handlerChangBo Guo(gcb)2016-11-021-0/+3
| | | | Change-Id: I71c6a322739fa3b361eadd93afb635cb467aaf58
* Have the enforcer have its own file cacheJoshua Harlow2015-08-061-9/+8
| | | | | | | | | | | | | | | Instead of having a library have a global (and not garbage collectable) file cache that is only used by enforcers and no other code have the file cache be per-enforcer so that it can be garbage collected when the enforcer drops from the scope its used in. This also removes one more usage of global state with instance specific state, which makes things easier to test and easier to isolate problems in (the less things that can be 'touched at a distance' the better). Change-Id: I208b08ae00e0337b594ece0f2b335d4de9f7392b
* Move fileutils functions to oslo.policySteve Martinelli2015-07-011-0/+56
read_cached_file and delete_cached_file are only used in oslo.policy. isolate the functions there so we can depreate fileutils. Change-Id: Ibbcda87eba6e21ace8904e1fb4c700e0790fb477