diff --git a/src/ansible_runner/utils/streaming.py b/src/ansible_runner/utils/streaming.py index 0c004c8a..a32e7528 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):