Skip to content

Missing jmespath #35

@jessejcollins

Description

@jessejcollins

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions