'zip' template filter is missing under python3 #28117
Labels
affects_2.3
This issue/PR affects Ansible v2.3
bug
This issue/PR relates to a bug.
c:plugins/action
c:plugins/filter
python3
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
ISSUE TYPE
COMPONENT NAME
zip template filter
ANSIBLE VERSION
CONFIGURATION
None
OS / ENVIRONMENT
Ubuntu
SUMMARY
Ansible can't load zip filter under python3. The problem seems to be at this line:
ansible/lib/ansible/plugins/filter/mathstuff.py
Line 164 in 21bd7bc
zip is a builtin function in python3 and is not located in itertools
STEPS TO REPRODUCE
ansible -m debug -a "msg={{ [1,2,3]|zip(['a','b','c'])|list }}" all
EXPECTED RESULTS
Output
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: