Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix MetaMainHasInfoRule when running from meta dir (#1493)
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'.
- Loading branch information