mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-29 22:01:27 -07:00
Fix nested loop for more than 3 elements
- combine flatten list for each nested level instead once at the end
This commit is contained in:
parent
d1effecb2e
commit
09ef7751e1
2 changed files with 10 additions and 1 deletions
|
@ -34,7 +34,7 @@ def combine(a,b):
|
|||
results = []
|
||||
for x in a:
|
||||
for y in b:
|
||||
results.append([x,y])
|
||||
results.append(flatten([x,y]))
|
||||
return results
|
||||
|
||||
class LookupModule(object):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue