fix(packages): read install_package's success from the exit status
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
This commit is contained in:
1 parent
a729b35d8b
commit
eaa08ae7e3
4 files changed
+70
-26
No files matched your search
@@ -22,7 +22,7 @@
|
||||
"napalm_linux.linux"
|
||||
],
|
||||
"python_file_lines": {
|
||||
"napalm_linux/linux.py": 2265
|
||||
"napalm_linux/linux.py": 2260
|
||||
},
|
||||
"untyped_public": []
|
||||
}
|
||||
Reference in new issue
Block a user