1
0
Fork 0
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:
Toshio Kuratomi 2016-08-24 13:50:14 -07:00 committed by GitHub
parent 2785ec878b
commit 7b4f808a21

View file

@ -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)]