Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/sos/cleaner/parsers/__pycache__/ |
Upload File : |
o -�_g% � @ s, d dl mZ d dlmZ G dd� de�ZdS )� )�SoSCleanerParser)�SoSUsernameMapc s8 e Zd ZdZdZdZg Zg f� fdd� Zdd� Z� Z 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 s t � | _t� �||� d S )N)r �mapping�super�__init__)�self�config�skip_cleaning_files�� __class__� �E/usr/lib/python3/dist-packages/sos/cleaner/parsers/username_parser.pyr s zSoSUsernameParser.__init__c C s |dfS )Nr r )r �liner r r �_parse_line! s zSoSUsernameParser._parse_line) �__name__� __module__�__qualname__�__doc__�name�map_file_key�regex_patternsr r � __classcell__r r r r r s r N)�sos.cleaner.parsersr �!sos.cleaner.mappings.username_mapr r r r r r �<module> s