mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Cleanup some pyflakes warning (1 real error)
This commit is contained in:
parent
c6d44738ad
commit
0888d78b84
7 changed files with 8 additions and 9 deletions
|
@ -19,7 +19,7 @@ __metaclass__ = type
|
|||
|
||||
from itertools import izip_longest
|
||||
|
||||
from ansible.errors import *
|
||||
from ansible.errors import AnsibleError
|
||||
from ansible.plugins.lookup import LookupBase
|
||||
from ansible.utils.listify import listify_lookup_plugin_terms
|
||||
|
||||
|
@ -44,7 +44,7 @@ class LookupModule(LookupBase):
|
|||
|
||||
my_list = terms[:]
|
||||
if len(my_list) == 0:
|
||||
raise errors.AnsibleError("with_together requires at least one element in each list")
|
||||
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)]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue