fix: extend front/rear port check to modules (#3820)

This commit is contained in:
Marcin Zieba
2025-12-27 23:14:24 +01:00
committed by GitHub
parent 844c68aceb
commit efa692f1fe
3 changed files with 3 additions and 3 deletions

View File

@@ -194,7 +194,7 @@ def test_definitions(file_path, schema, change_type):
this_device = ModuleType(definition, file_path, change_type)
# Validate that front-ports reference existing rear-ports
if this_device.isDevice:
if any(x in file_path for x in ("device-types", "module-types")):
rear_ports = definition.get("rear-ports", []) or []
front_ports = definition.get("front-ports", []) or []