Current File : //usr/lib/python3/dist-packages/sos/cleaner/parsers/__pycache__/username_parser.cpython-312.pyc |
�
-�_g% � �2 � d dl mZ d dlmZ G d� de� Zy)� )�SoSCleanerParser)�SoSUsernameMapc �8 � � e Zd ZdZdZdZg Zg f� fd� Zd� Z� xZ S )�SoSUsernameParsera� Parser for obfuscating usernames within an sos report archive.
Note that this parser does not rely on regex matching directly, like most
other parsers do. Instead, usernames are discovered via scraping the
collected output of lastlog. As such, we do not discover new usernames
later on, and only usernames present in lastlog output will be obfuscated,
and those passed via the --usernames option if one is provided.
zUsername Parser�username_mapc �D �� t � | _ t �| �
||� y )N)r �mapping�super�__init__)�self�config�skip_cleaning_files� __class__s ��E/usr/lib/python3/dist-packages/sos/cleaner/parsers/username_parser.pyr zSoSUsernameParser.__init__ s �� �%�'���
����!4�5� c �
� |dfS )Nr � )r �lines r �_parse_linezSoSUsernameParser._parse_line! s � ��Q�w�r )
�__name__�
__module__�__qualname__�__doc__�name�map_file_key�regex_patternsr r �
__classcell__)r s @r r r s&