Skip to content

Commit

Permalink
Update _mockings.py to fix bug created in ansible#3390
Browse files Browse the repository at this point in the history
This moves us back to an rmdir for removing directories, since unlink with never work for the directories
  • Loading branch information
karcaw authored and audgirka committed Jul 17, 2023
1 parent 0cea5b6 commit f01affe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansiblelint/_mockings.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ def _perform_mockings_cleanup(options: Options) -> None:
else:
path = options.cache_dir / "roles" / role_name
with contextlib.suppress(OSError):
path.unlink()
path.rmdir()

0 comments on commit f01affe

Please sign in to comment.