fix(kernel): the kernel facts' shape in a module of its own, and no try/except/pass (NetOrk/netork#2701)

models.py had grown past its recorded size with the live patches;
KernelFactsDict moves to kernel_models, re-exported by models, and the
record shrinks to what is left (1336). The root read of Canonical's status
returns on a refusal instead of passing (bandit B110).
This commit is contained in:
christianmanivong committed 2026-11-28 10:31:50 +01:00
1 parent 9d921c4ce8
commit 3f35d05a73
4 files changed
+42 -26

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@
},
"mypy_relaxed": [],
"python_file_lines": {
"napalm_device_types/models.py": 1353
"napalm_device_types/models.py": 1336
},
"untyped_public": []
}