Skip to content
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

Ensure that the role file is not a file #1522

Merged
merged 1 commit into from Apr 8, 2021
Merged

Conversation

apatard
Copy link
Contributor

@apatard apatard commented Apr 7, 2021

If a role contains something like a file called roles/.gitkeep,
ansible-lint will classify it as a role while it has no chance
to be a role (since it's a file). Add a check in _extend_with_roles()
to avoid linting files as a role.

Signed-off-by: Arnaud Patard apatard@hupstream.com

If a role contains something like a file called roles/.gitkeep,
ansible-lint will classify it as a role while it has no chance
to be a role (since it's a file). Add a check in _extend_with_roles()
to avoid linting files as a role.

Signed-off-by: Arnaud Patard <apatard@hupstream.com>
@ssbarnea ssbarnea added the bug label Apr 8, 2021
@ssbarnea ssbarnea changed the title src/ansiblelint/utils.py: Ensure that the role file is not a file Ensure that the role file is not a file Apr 8, 2021
@ssbarnea ssbarnea merged commit 30e08e4 into ansible:master Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants