clan-cli: Fix incorrect input handling in get_templates

This commit is contained in:
Qubasa
2025-02-04 14:28:56 +07:00
committed by clan-bot
parent da0f792d9e
commit bf26a2d306
3 changed files with 13 additions and 3 deletions

View File

@@ -237,7 +237,9 @@ def get_template(
input_name = InputName(input_name_str)
log.debug(f"Checking input '{input_name}' for template '{template_name}'")
template = find_template(template_name, template_list.inputs[input_name])
template = find_template(
template_name, template_list.inputs.get(input_name, {})
)
if template:
log.debug(f"Found template '{template_name}' in input '{input_name}'")
break # Stop searching once the template is found