Adapted CSP to new server dict structure

This commit is contained in:
2025-08-07 13:00:52 +02:00
parent 051e4accd6
commit 5a0684fa2d
5 changed files with 41 additions and 36 deletions

View File

@@ -62,7 +62,7 @@ class TestCspConfigurationConsistency(unittest.TestCase):
errors.append(f"{role_path.name}: YAML parse error: {e}")
continue
csp = cfg.get('csp')
csp = cfg.get('server',{}).get('csp')
if csp is None:
continue # nothing to check