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:
James Cammarata
2015-10-12 13:03:49 -04:00
parent b441bcb678
commit 5c5806d669
3 changed files with 10 additions and 5 deletions

View File

@@ -20,6 +20,7 @@ __metaclass__ = type
from collections import MutableMapping
from ansible import constants as C
from ansible.errors import AnsibleError
from ansible.plugins import cache_loader
try: