mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
pickle cache plugin, avoid extra steps in DT (#10136)
* pickle cache plugin, avoid extra steps in DT * clog * Update changelogs/fragments/10136-cache-pickle-json.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
2
changelogs/fragments/10136-cache-pickle-json.yml
Normal file
2
changelogs/fragments/10136-cache-pickle-json.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- pickle cache plugin - avoid extra JSON serialization with ansible-core >= 2.19 (https://github.com/ansible-collections/community.general/pull/10136).
|
||||
1
plugins/cache/pickle.py
vendored
1
plugins/cache/pickle.py
vendored
@@ -56,6 +56,7 @@ class CacheModule(BaseFileCacheModule):
|
||||
"""
|
||||
A caching module backed by pickle files.
|
||||
"""
|
||||
_persistent = False # prevent unnecessary JSON serialization and key munging
|
||||
|
||||
def _load(self, filepath):
|
||||
# Pickle is a binary format
|
||||
|
||||
Reference in New Issue
Block a user