Skip to content

ansible-lint with ansible-core 2.19 can still call lookup() #4697

@felixfontein

Description

@felixfontein
Summary

While playing around with current main, I found some more ways to make ansible-lint call lookup plugins: add round brackets around lookup/query/q: (lookup)('name.of.plugin', 'parameters') is not caught by the regular expression.

I think this shows that the only way to properly handle this is to look at the AST.

Issue Type
  • Bug Report

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions