install_package searched the output of `... || true` for words such as "failed", the pattern uninstall_package left behind for netork#267: a postinst that only mentions a failure read as a failed install, and a failure phrased without those words read as success. It now runs through _sudo_status like the removal and falls back to the keywords only when the channel gave no exit status. The ruff findings named in the issue are gone since the driver adopted the standard; strict mypy for linux.py is held by the quality ratchet, and the None-vs-dict package contract is NAPALM/napalm-device-types#36. Closes #4
29 lines
1.0 KiB
JSON
29 lines
1.0 KiB
JSON
{
|
|
"coverage_floor": 57.0,
|
|
"function_complexity": {
|
|
"napalm_linux/linux.py::LinuxDriver._collect_platform_info": 24,
|
|
"napalm_linux/linux.py::LinuxDriver._parse_cron_line": 12,
|
|
"napalm_linux/linux.py::LinuxDriver.get_networks": 13,
|
|
"napalm_linux/linux.py::LinuxDriver.get_route_to": 23,
|
|
"napalm_linux/linux.py::LinuxDriver.get_snmp_config": 13,
|
|
"napalm_linux/linux.py::LinuxDriver.get_vpn_tunnels": 28,
|
|
"napalm_linux/linux.py::LinuxDriver.search_packages": 26
|
|
},
|
|
"function_lines": {
|
|
"napalm_linux/linux.py::LinuxDriver._collect_platform_info": 106,
|
|
"napalm_linux/linux.py::LinuxDriver.get_networks": 52,
|
|
"napalm_linux/linux.py::LinuxDriver.get_route_to": 138,
|
|
"napalm_linux/linux.py::LinuxDriver.get_vpn_tunnels": 152,
|
|
"napalm_linux/linux.py::LinuxDriver.ping": 52,
|
|
"napalm_linux/linux.py::LinuxDriver.search_packages": 106,
|
|
"napalm_linux/linux.py::LinuxDriver.uninstall_package": 51
|
|
},
|
|
"mypy_relaxed": [
|
|
"napalm_linux.linux"
|
|
],
|
|
"python_file_lines": {
|
|
"napalm_linux/linux.py": 2260
|
|
},
|
|
"untyped_public": []
|
|
}
|