From a8aa5ff4eb7eb6c981f3446be508d6da3b5c7a68 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 11 Feb 2016 10:34:31 -0500 Subject: [PATCH] fix cartesian lookup it seems that this was not working in 1.9 but we swallowed up the error fixes #14437 --- lib/ansible/plugins/lookup/cartesian.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/lookup/cartesian.py b/lib/ansible/plugins/lookup/cartesian.py index ce31ef9700b..75d3a0735a8 100644 --- a/lib/ansible/plugins/lookup/cartesian.py +++ b/lib/ansible/plugins/lookup/cartesian.py @@ -50,5 +50,5 @@ class LookupModule(LookupBase): if len(my_list) == 0: 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)]