-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong tested file path expansion #2513
Labels
Comments
ssbarnea
added a commit
to ssbarnea/ansible-lint
that referenced
this issue
Sep 29, 2022
ssbarnea
added a commit
to ssbarnea/ansible-lint
that referenced
this issue
Sep 29, 2022
ssbarnea
added a commit
to ssbarnea/ansible-lint
that referenced
this issue
Sep 29, 2022
ssbarnea
added a commit
to ssbarnea/ansible-lint
that referenced
this issue
Sep 29, 2022
ssbarnea
added a commit
that referenced
this issue
Sep 29, 2022
ssbarnea
added a commit
to ssbarnea/ansible-lint
that referenced
this issue
Oct 5, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Wrong tested file path expansion
Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
STEPS TO REPRODUCE
ansible-lint /root/localtestplaybook.yml
does not lint file/root/localtestplaybook.yml
but/tmp/~/localtestplaybook.yml
and fail to test that nonexistent file.Exception - if you run the command in /root directory it works correctly.
Path rewriting occurs on line 240 https://github.com/ansible/ansible-lint/blob/main/src/ansiblelint/file_utils.py#L240
Desired Behavior
Read and lint the file on CLI.
Actual Behavior
Please give some details of what is actually happening.
Include a minimum complete verifiable example with:
The text was updated successfully, but these errors were encountered: