mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-28 12:01:13 -04:00
FE+TESTS: review fixes
This commit is contained in:
1 parent
bd4b2f14e3
commit
ce6914beaf
2 files changed
+8
-1
No files matched your search
@@ -122,6 +122,13 @@ def check_content_drift():
|
||||
if group[0] not in CONTENT_MATCH_GROUP_KEYS:
|
||||
continue
|
||||
bodies = {path: read_body(path) for path in group}
|
||||
|
||||
missing = [path for path, body in bodies.items() if body is None]
|
||||
if missing:
|
||||
for path in missing:
|
||||
problems.append(f"- {path} is missing (part of a content-match group).")
|
||||
continue
|
||||
|
||||
reference_path, reference_body = group[0], bodies[group[0]]
|
||||
for path, body in bodies.items():
|
||||
if path == reference_path:
|
||||
|
||||
Reference in new issue
Block a user