remove handling of security as special case

This commit is contained in:
Lukas Greve
2026-03-30 20:30:11 +02:00
parent 5fcbdc2e9d
commit 1ea58e3452
2 changed files with 3 additions and 9 deletions
+2 -8
View File
@@ -49,8 +49,8 @@ TEMPLATES = {
'extra': 'packages/hand-picked.ks',
},
'security': {
'enabled': 'core/security/enabled.ks',
'disabled': 'core/security/disabled.ks',
'secure': 'core/security/enabled.ks',
'insecure': 'core/security/disabled.ks',
},
'initial-setup': {
'server': 'initial-setup/server/config.ks',
@@ -125,14 +125,8 @@ def get_required_ingredients(variant):
"""Get required ingredients for a variant."""
ingredients = []
# Handle special case: security "secure" maps to "enabled"
security = variant.get('security', 'enabled')
if security == 'secure':
security = 'enabled'
# Build variant dict with special mappings
variant_map = dict(variant)
variant_map['security'] = security
for category, mapping in TEMPLATES['required'].items():
key = variant_map.get(category, list(mapping.keys())[0])