-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve by-id device name retrieval #1936
Some systemd/udev configs can push DEVLINKS from the top line of udevadm output: breaking an assumption made in get_dev_byid_name(). - Remove assumption that DEVLINKS line is first presented by udevadm. - Debug log if no DEVLINKS line was found. - Error log if device node not found. - Ensure determinism with multiple same length by-id names for the same device: ie via device links list sort prior to selection and return. - Add unit tests for get_dev_byid_name() to cover existing desired and above modified behaviour. - Refactor for readability / simplification. - Fix existing minor flake8 compliance in osi.py.
- Loading branch information
Showing
3 changed files
with
406 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.