Skip to content

Commit

Permalink
Merge branch 'main' into sudoless-nmcli
Browse files Browse the repository at this point in the history
  • Loading branch information
tcamise-gpsw committed Apr 10, 2024
2 parents e12083d + 3924ed9 commit 9caad39
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ def _detect_driver(self) -> WifiController:
self._sudo_from_stdin()

version = cmd("nmcli --version").split()[-1]
# On RHEL based systems, the version is in the form of 1.44.2-1.fc39
# wich raises an error when trying to compare it with the Version class
if any(c.isalpha() for c in version):
version = version.split("-")[0]
return (
Nmcli0990Wireless(password=self._password)
if Version(version) >= Version("0.9.9.0")
Expand Down

0 comments on commit 9caad39

Please sign in to comment.