You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check nmcli permissions and only ask for password if required.
Move getpass to separate func and validate password input using assert
Otherwise raise AssertionError
Change sudo func to return an empty string if no sudo password is
provided in order to prevent formating of the nmcli commands with sudo
prefix if not required.
Raise condition is moved at password input.
This commit solves gopro#483
Most desktop Linux distributions do not require sudo privileges to control networking.
nmcli takes its permission from Polkit
/usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy
I'd like OpenGoPro Python SDK to only ask for sudo privileges when necessary.
One way to implement this would be to:
nmcli general permissions
Attaching a PR.
The text was updated successfully, but these errors were encountered: