Fixes: Uses correct fallback data key

The code now uses the correct key ("fallback_type") to access the
fallback type from the configuration data, ensuring the correct config
path is retrieved when no product is found.
This commit is contained in:
Jakub Jezek 2025-05-14 16:29:49 +02:00
parent 0d8430188a
commit 9b8229fa81
No known key found for this signature in database
GPG key ID: 06DBD609ADF27FD9

View file

@ -834,7 +834,7 @@ def _get_global_config_data(
if not product_entities_by_name:
# in case no product was found we need to use fallback
fallback_type = fallback_data["type"]
fallback_type = fallback_data["fallback_type"]
return _get_config_path_from_profile_data(
fallback_data, fallback_type, template_data
)