From c0b5119034f5a55bf7655bf8867643291a01ae4d Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Fri, 16 May 2025 22:37:53 +0200 Subject: [PATCH] [PR #10136/937d92ee backport][stable-9] pickle cache plugin, avoid extra steps in DT (#10143) 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 --------- (cherry picked from commit 937d92ee25b604871cc1189e1c7e25c8e9d1ba3d) Co-authored-by: Brian Coca Co-authored-by: Felix Fontein --- changelogs/fragments/10136-cache-pickle-json.yml | 2 ++ plugins/cache/pickle.py | 1 + 2 files changed, 3 insertions(+) create mode 100644 changelogs/fragments/10136-cache-pickle-json.yml diff --git a/changelogs/fragments/10136-cache-pickle-json.yml b/changelogs/fragments/10136-cache-pickle-json.yml new file mode 100644 index 0000000000..a527e5c4b7 --- /dev/null +++ b/changelogs/fragments/10136-cache-pickle-json.yml @@ -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). diff --git a/plugins/cache/pickle.py b/plugins/cache/pickle.py index 60b1ea74e0..1fb756c873 100644 --- a/plugins/cache/pickle.py +++ b/plugins/cache/pickle.py @@ -57,6 +57,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