-
SummaryAdd linting for whitespace between Jinja curly brackets. Issue Type
Additional InformationI'm not sure how large of an impact this would have, but I feel it makes sense to include since Ansible complains when there is a space in the 2nd curly bracket (See examples). Good example: - debug:
msg: "{{ test_var }}" TASK [debug]
ok: [localhost] => {
"msg": "THIS IS A TEST"
} Bad example: - debug:
msg: "{{ test_var } }" TASK [debug]
fatal: [localhost]: FAILED! => {"msg": "template error while templating string: unexpected '}'. String: {{ test_var } }"} Other example This example runs successfully, however I don't believe this would be intentional. - debug:
msg: "{ { test_var }}" TASK [debug]
ok: [localhost] => {
"msg": "{ { test_var }}"
} |
Beta Was this translation helpful? Give feedback.
Answered by
ssbarnea
Dec 26, 2020
Replies: 1 comment
-
That is a good idea, just make a PR to implement it. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ssbarnea
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That is a good idea, just make a PR to implement it.