-
Notifications
You must be signed in to change notification settings - Fork 706
Closed
Description
Summary
When having a meta yaml, the error message for validation was misleading in my case.
Issue Type
- Bug Report
Ansible and Ansible Lint details
ansible-lint 6.3.0, installed via pip
STEPS TO REPRODUCE
Have a meta file like following in a role:
galaxy_info:
author: Author
description: Description
license: GPLv3
min_ansible_version: 2.8
platforms:
- name: EL
versions:
- 7
galaxy_tags:
- system
Desired Behavior
Output is
schema: 7 is not one of ['5', '6', '7', '8', '9', 'all'] (schema[meta])
roles/sample_role/meta/main.yml:1 Returned errors will not include exact line numbers, but they will mention
the schema name being used as a tag, like ``playbook-schema``,
``tasks-schema``.
Actual Behavior
schema: 7 is not one of ['6.1', '7.1', '7.2', 'all'] (schema[meta])
roles/sample_role/meta/main.yml:1 Returned errors will not include exact line numbers, but they will mention
the schema name being used as a tag, like ``playbook-schema``,
``tasks-schema``.
Additional hints:
When looking at the schema file, ['6.1', '7.1', '7.2', 'all'] seems like the error was that the platform was detected to be an AIX. Obviously that is wrong and the error was that 7 was not a string. The error also hinted that "7" wouldn't have been a valid choice
Metadata
Metadata
Assignees
Labels
No labels