Re: Using fedora-active-user: unable to find fedora_cert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Thu, May 30, 2019 at 09:43:38AM -0700, Kevin Fenzi wrote:

> Ideally it should drop fedora-cert use entirely. It looks like currently
> all it uses it for is to figure out your username. Instead it should
> default to your local user name or take a --user or something. :)

IMHO it should default to this:

    if os.path.exists(os.path.expanduser('~/.fedora.upn')):
        with open(os.path.expanduser('~/.fedora.upn'), 'r') as f:
            username = f.read().replace('\n', '')
    else:
        username = getpass.getuser()

Kind regards
Till
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux