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

schema[playbook] on vars_files #4328

Open
diomedesadmin opened this issue Sep 12, 2024 · 0 comments
Open

schema[playbook] on vars_files #4328

diomedesadmin opened this issue Sep 12, 2024 · 0 comments
Labels
bug new Triage required

Comments

@diomedesadmin
Copy link

diomedesadmin commented Sep 12, 2024

  vars_files:
    - "../../secrets/secrets-prod.yml"
schema[playbook]: $[0].vars_files ['../../secrets/secrets-prod.yml'] is not of type 'object'
playbooks/prod/clockwork_reference_clock.base.yml:1  Returned errors will not include exact line numbers, but they will mention
the schema name being used as a tag, like ``schema[playbook]``,
``schema[tasks]``.

This rule is not skippable and stops further processing of the file.

If incorrect schema was picked, you might want to either:

* move the file to standard location, so its file is detected correctly.
* use ``kinds:`` option in linter config to help it pick correct file type.


Read documentation for instructions on how to ignore specific rule violations.

               Rule Violation Summary
 count tag              profile rule associated tags
     1 schema[playbook] basic   core

Failed: 1 failure(s), 


Tried everything, without '../../', single string, full path. Had to add schema[playbook] into the skip_list.

@diomedesadmin diomedesadmin added bug new Triage required labels Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug new Triage required
Projects
Status: No status
Development

No branches or pull requests

1 participant