Skip to content

Commit

Permalink
ignore errant partials
Browse files Browse the repository at this point in the history
  • Loading branch information
sivel committed Jan 27, 2025
1 parent 2279033 commit f732423
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ansible_runner/utils/streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f732423

Please sign in to comment.