Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only ask for sudo password when required #484

Merged
merged 4 commits into from
Apr 10, 2024

Commits on Feb 15, 2024

  1. Only ask for sudo password when required

    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.
    epheo committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    d084cfd View commit details
    Browse the repository at this point in the history
  2. Allow password arg from None type in driver class

    As password isn't a mandatory requirement for the follwing classes
    also accept None type arg for password.
    - Nmcli0990Wireless
    - NmcliWireless
    - WpasupplicantWireless
    
    Replace assert with if not raise RunTime error.
    epheo committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    2c419a1 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. Configuration menu
    Copy the full SHA
    e12083d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9caad39 View commit details
    Browse the repository at this point in the history