Skip to content

Commit

Permalink
chore: auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 21, 2022
1 parent ea5585b commit 4bb9985
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ansible_compat/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,9 @@ def _install_galaxy_role(
# despite documentation stating that is_file() reports true for symlinks,
# it appears that is_dir() reports true instead, so we rely on exists().
target = pathlib.Path(project_dir).absolute()
if not link_path.exists() or (link_path.is_symlink() and os.readlink(link_path) != str(target)):
if not link_path.exists() or (
link_path.is_symlink() and os.readlink(link_path) != str(target)
):
while True:
# must call unlink before checking exists because a broken
# link reports as not existing and we want to repair it
Expand Down

0 comments on commit 4bb9985

Please sign in to comment.