mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
One more izip_longest => zip_longest fix (#17229)
This commit is contained in:
parent
2785ec878b
commit
7b4f808a21
1 changed files with 2 additions and 3 deletions
|
@ -17,8 +17,7 @@
|
|||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
from itertools import izip_longest
|
||||
|
||||
from ansible.compat.six.moves import zip_longest
|
||||
from ansible.errors import AnsibleError
|
||||
from ansible.plugins.lookup import LookupBase
|
||||
from ansible.utils.listify import listify_lookup_plugin_terms
|
||||
|
@ -46,5 +45,5 @@ class LookupModule(LookupBase):
|
|||
if len(my_list) == 0:
|
||||
raise AnsibleError("with_together requires at least one element in each list")
|
||||
|
||||
return [self._flatten(x) for x in izip_longest(*my_list, fillvalue=None)]
|
||||
return [self._flatten(x) for x in zip_longest(*my_list, fillvalue=None)]
|
||||
|
||||
|
|
Loading…
Reference in a new issue