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

Missing jmespath #35

Open
jessejcollins opened this issue Feb 2, 2023 · 1 comment
Open

Missing jmespath #35

jessejcollins opened this issue Feb 2, 2023 · 1 comment
Assignees

Comments

@jessejcollins
Copy link

jessejcollins commented Feb 2, 2023

I have some Ansible that uses json_query, and when I run ansible-lint in a cytopia/ansible-lint container, I get the following error:

WARNING  Listing 2 violation(s) that are fatal
d=856173;https://ansible-lint.readthedocs.io/rules/jinja/1;91mjinja[invalid]: You need to install "jmespath" prior to running json_query filter

Per the message above, this occurs because jmespath is not on the image.

In my GitLab CI/CD pipeline before running ansible-lint, I'm able to install jmespath via pip with the following before_script:

  before_script:
    - /usr/bin/python3 -m pip install jmespath

Since it is needed for some linting, can jmespath be pre-installed in the image?

@cytopia cytopia self-assigned this Feb 2, 2023
@cytopia
Copy link
Owner

cytopia commented Feb 2, 2023

can jmespath be pre-installed in the image?

Sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants