Optimized for portfolio, presentation and docs

This commit is contained in:
2025-04-10 17:49:47 +02:00
parent 33a8d8b579
commit 2183038240
32 changed files with 346 additions and 155 deletions

View File

@@ -10,11 +10,11 @@ class LookupModule(LookupBase):
Group the given cards into categorized and uncategorized lists
based on the tags from menu_categories.
"""
if len(terms) < 1:
raise AnsibleError("Missing required argument: cards")
if len(terms) < 2:
raise AnsibleError("Missing required arguments")
cards = terms[0]
menu_categories = variables.get("menu_categories", {})
menu_categories = terms[1]
categorized = {}
uncategorized = []