Cleanup some pyflakes warning (1 real error)

This commit is contained in:
Toshio Kuratomi 2015-10-19 11:42:46 -07:00
parent c6d44738ad
commit 0888d78b84
7 changed files with 8 additions and 9 deletions

View file

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