mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Fixing bugs related to jfonfile cache plugin
* corrupt/invalid file causes tracebacks * incorrect initialization of display/_display in BaseCacheModule class * tweaking the way errors in get() on jsonfile caches work, to raise a proper AnsibleError in that situation so the playbook/task is stopped Fixes #12708
This commit is contained in:
parent
b441bcb678
commit
5c5806d669
3 changed files with 10 additions and 5 deletions
2
lib/ansible/plugins/cache/base.py
vendored
2
lib/ansible/plugins/cache/base.py
vendored
|
@ -31,7 +31,7 @@ except ImportError:
|
|||
|
||||
class BaseCacheModule(with_metaclass(ABCMeta, object)):
|
||||
|
||||
display = display
|
||||
_display = display
|
||||
|
||||
@abstractmethod
|
||||
def get(self, key):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue