Restructuring for new backup solution

This commit is contained in:
2025-07-16 19:09:31 +02:00
parent dea2669de2
commit 169493179e
38 changed files with 133 additions and 91 deletions

View File

@@ -131,6 +131,27 @@ class TestGetAppConfPaths(unittest.TestCase):
break
if found:
continue
# Wildcardprefix: if the path ends with '.', treat it as a prefix
# and check for nested dicts in defaults_applications
if dotted.endswith('.'):
prefix = dotted.rstrip('.')
parts = prefix.split('.')
for cfg in self.defaults_app.values():
cur = cfg
ok = True
for p in parts:
if isinstance(cur, dict) and p in cur:
cur = cur[p]
else:
ok = False
break
if ok:
found = True
break
if found:
continue
# credentials.*: zuerst in defaults_applications prüfen, dann im Schema
if dotted.startswith('credentials.'):
key = dotted.split('.', 1)[1]