Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix debian and Ubuntu version detection
This fixes an issue with the Debian version information where it was retrieving a number instead of the codename. This also fixes an issue where the version of Ubuntu was incomplete and it was retrieving only the first part of it, rather than the full version. The unit test was failing on recent versions of Debian and Ubuntu because the `login` package is no longer installing the binary on `/bin/login` but rather on `/usr/bin/login`. We have added a function which will retrieve the binary path depending on the distro as well. Resolves: #6028 Co-authored-by: David Negreira <[email protected]> Signed-off-by: David Negreira <[email protected]> Signed-off-by: Arif Ali <[email protected]>
- Loading branch information