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

@ -31,7 +31,7 @@ except ImportError:
class BaseCacheModule(with_metaclass(ABCMeta, object)):
display = display
_display = display
@abstractmethod
def get(self, key):