[Patch] warning: redhatenterpriselinux distro is not found in AUTH_TYPES
Bug #1938504 reported by
zdohnal
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I found out the following issue during testing in CentOS Stream 9:
warning: redhatenterpris
It happens because 'get_distro_name()' function from base/password.py doesn't remove spaces before this if block:
100 os_name = os_name.lower()
101 if "redhatenterprise" in os_name:
102 os_name = 'rhel'
103 elif "suse" in os_name:
104 os_name = 'suse'
105 elif "arch" in os_name:
106 os_name = 'manjarolinux'
so the first condition isn't true.
The fix is to use:
100 os_name = os_name.
before the if block.
The patch is attached.
To post a comment you must log in.
The similar issue now happens in Fedora as well - Fedora is now Fedora Linux (classic rpm based OS) and Fedora CoreOS/Silverblue (containers and flatpack), mentioned even in OS name.
The updated patch attached.