From f732423f388a28c048d873231b18a9cb20d799dd Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Mon, 27 Jan 2025 09:34:15 -0600 Subject: [PATCH] ignore errant partials --- src/ansible_runner/utils/streaming.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ansible_runner/utils/streaming.py b/src/ansible_runner/utils/streaming.py index 0c004c8ac..a32e75288 100644 --- a/src/ansible_runner/utils/streaming.py +++ b/src/ansible_runner/utils/streaming.py @@ -24,6 +24,9 @@ def stream_dir(source_directory: str, stream: io.FileIO) -> None: if relpath == ".": relpath = "" for fname in files + dirs: + if fname.endswith('-partial.json'): + # errant partial, not linked to any event + continue full_path = os.path.join(dirpath, fname) # Magic to preserve symlinks if os.path.islink(full_path):