You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A few rules don't like empty meta files. Consider a file 'roles/watchdog/meta/main.yml` with just the following content:
---
Running ansible-lint will produce the following warnings:
WARNING Ignored exception from MetaChangeFromDefaultRule.<bound method MetaChangeFromDefaultRule.matchyaml of meta-incorrect: meta/main.yml default values should be changed.> while processing roles/watchdog/meta/main.yml (meta): 'NoneType' object has no attribute 'get'
WARNING Ignored exception from MetaTagValidRule.<bound method MetaTagValidRule.matchyaml of meta-no-tags: Tags must contain lowercase letters and digits only.> while processing roles/watchdog/meta/main.yml (meta): 'NoneType' object has no attribute 'get'
WARNING Ignored exception from MetaVideoLinksRule.<bound method MetaVideoLinksRule.matchyaml of meta-video-links: meta/main.yml video_links should be formatted correctly.> while processing roles/watchdog/meta/main.yml (meta): 'NoneType' object has no attribute 'get'
While this is easily worked around by deleting the meta file, the warning is not easy to understand and - I believe - unintended.
Issue Type
Bug Report
Ansible and Ansible Lint details
$ ansible --versionansible [core 2.13.4] [...] python version = 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] jinja version = 3.0.2 libyaml = True
$ ansible-lint --versionansible-lint 6.8.0 using ansible 2.13.4
Summary
A few rules don't like empty meta files. Consider a file 'roles/watchdog/meta/main.yml` with just the following content:
Running
ansible-lint
will produce the following warnings:While this is easily worked around by deleting the meta file, the warning is not easy to understand and - I believe - unintended.
Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
n/a
STEPS TO REPRODUCE
Desired Behavior
No warnings. :)
Actual Behavior
See above.
The text was updated successfully, but these errors were encountered: