Skip to content

Commit c12178f

Browse files
anusshuklaanushkshpre-commit-ci[bot]
authored
Lint failure in ansible.utils: src must be an absolute path fix (#4712)
Co-authored-by: anushka-shukla-03 <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 9765b87 commit c12178f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ansiblelint/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,7 @@ def parse_examples_from_plugin(lintable: Lintable) -> tuple[int, str]:
13441344
offset = child.lineno - 1
13451345
break
13461346

1347-
docs = read_docstring(str(lintable.path)) # type: ignore[no-untyped-call]
1347+
docs = read_docstring(str(lintable.path.resolve(strict=False))) # type: ignore[no-untyped-call]
13481348
examples = docs["plainexamples"]
13491349

13501350
# Ignore the leading newline and lack of document start

0 commit comments

Comments
 (0)