mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
Fix indexed_items.py to run on python3 (#17292)
On python3, zip is a iterator so we need to explictily create the list from that.
This commit is contained in:
parent
9c311b6b13
commit
8f364b549b
1 changed files with 1 additions and 1 deletions
|
@ -31,5 +31,5 @@ class LookupModule(LookupBase):
|
|||
raise AnsibleError("with_indexed_items expects a list")
|
||||
|
||||
items = self._flatten(terms)
|
||||
return zip(range(len(items)), items)
|
||||
return list(zip(range(len(items)), items))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue