bool to string filter does not work (original) (raw)
Expected Behavior
Filtering bool to string should give True or False respective of the value.
Actual Behavior
Filtering bool to string always gives False.
Template Code
Paste the template code (ideally a minimal example) that causes the issue
'{{6 > 0}}' ==> True '{{6 > 0|string}}' ==> False '{{6 > 0|bool}}' ==> True '{{6 > 0|bool|string}}' ==> False
Your Environment
- Python version: 2.7
- Jinja version: Don't know the Jinja version, Ansible is 2.5.4