[Patch] warning: redhatenterpriselinux distro is not found in AUTH_TYPES

Bug #1938504 reported by zdohnal
6
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: redhatenterpriselinux distro is not found in AUTH_TYPES

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.lower().replace(' ','')
                                 ----------------
before the if block.

The patch is attached.

Revision history for this message
zdohnal (zdohnal) wrote :
Revision history for this message
zdohnal (zdohnal) wrote :

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.

Revision history for this message
zdohnal (zdohnal) wrote :

The current 3.21.12 fixes only the Fedora part - Red Hat Enterprise Linux part is still affected, because of spaces.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.