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

Jinja variable detection reports false positive #16

Open
iils-jschmidt opened this issue Apr 25, 2022 · 0 comments
Open

Jinja variable detection reports false positive #16

iils-jschmidt opened this issue Apr 25, 2022 · 0 comments

Comments

@iils-jschmidt
Copy link

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

@iils-jschmidt iils-jschmidt changed the title Jinja variable detection reprots false positive Jinja variable detection reports false positive Apr 25, 2022
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

1 participant