mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix cartesian lookup
it seems that this was not working in 1.9 but we swallowed up the error fixes #14437
This commit is contained in:
parent
cf251258a8
commit
a8aa5ff4eb
1 changed files with 1 additions and 1 deletions
|
@ -50,5 +50,5 @@ class LookupModule(LookupBase):
|
||||||
if len(my_list) == 0:
|
if len(my_list) == 0:
|
||||||
raise AnsibleError("with_cartesian requires at least one element in each list")
|
raise AnsibleError("with_cartesian requires at least one element in each list")
|
||||||
|
|
||||||
return [self._flatten(x) for x in product(*my_list, fillvalue=None)]
|
return [self._flatten(x) for x in product(*my_list)]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue