Skip to content

Jinja variable detection reports false positive #16

@iils-jschmidt

Description

@iils-jschmidt

This expression
{% do network2host[interfacedetails['network']].update({current_host:{'ip':interfacedetails['ip'],'mac':interfacedetails['mac']}}) %}
is wrongly recognized as a variable. Therefore the problem message:
Jinja variables should have spaces before and after: '{{ var_name }}' salt-lint(206) does not apply and should not be displayed.

network2host and current_host are dicts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions