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

Fix MetaMainHasInfoRule when running from meta dir #1493

Merged
merged 1 commit into from Mar 25, 2021

Conversation

Udyrfrykte
Copy link
Contributor

When ansible-lint is run directly from the meta directory for meta/main.yml, file.path is simply 'main.yml' and fails the str(file.path).endswith('/main.yml') test.

This PR attempts to fix this by instead comparing the name attribute of the Path object to 'main.yml'.

When ansible-lint is run directly from the meta directory for meta/main.yml, file.path is simply 'main.yml' and fails the `str(file.path).endswith('/main.yml')` test.
We can instead compare the name attribute of the Path object to 'main.yml'.
@ssbarnea ssbarnea added the bug label Mar 25, 2021
@ssbarnea ssbarnea merged commit 8a5eddf into ansible:master Mar 25, 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