Skip to content

Commit

Permalink
Avoid errors processing symlinked files (#1770)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Nov 30, 2021
1 parent 80dbd6d commit 15565da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansiblelint/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def get(self, key: Any, default: Any = None) -> Any:
def content(self) -> str:
"""Retried file content, from internal cache or disk."""
if self._content is None:
with open(self.path, mode='r', encoding='utf-8') as f:
with open(self.path.resolve(), mode='r', encoding='utf-8') as f:
self._content = f.read()
return self._content

Expand Down

0 comments on commit 15565da

Please sign in to comment.