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…
Reference in a new issue