diff --git a/src/ansiblelint/utils.py b/src/ansiblelint/utils.py index daf8ad64b3..7ea38102b8 100644 --- a/src/ansiblelint/utils.py +++ b/src/ansiblelint/utils.py @@ -1344,7 +1344,7 @@ def parse_examples_from_plugin(lintable: Lintable) -> tuple[int, str]: offset = child.lineno - 1 break - docs = read_docstring(str(lintable.path)) # type: ignore[no-untyped-call] + docs = read_docstring(str(lintable.path.resolve(strict=False))) # type: ignore[no-untyped-call] examples = docs["plainexamples"] # Ignore the leading newline and lack of document start