%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/cleaner/preppers/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/cleaner/preppers/__pycache__/hostname.cpython-312.pyc

�

i��d���&�ddlmZGd�de�Zy)�)�
SoSPrepperc��eZdZdZdZd�Zy)�HostnamePrepperaw
    Prepper for providing domain and hostname information to the hostname
    mapping.

    The items from hostname sources are handled manually via the _get_items
    method, rather than passing the file directly, as the parser does not know
    what hostnames or domains to match on initially.

    This will also populate the regex_items list with local short names.
    �hostnamec�~�g}d}|jrd}n|jrd}|j|�}|r�|dk7r�|jd�}t	|�dkDr5|j|d�|jdj|d�t	|�dkDr3dj|d	d�}|j|j��|j|j��|jd
�}|j�D]}|jd�sd|vr�|j�dd}	|	D]O}
t	|
jd��dk(r|jdj|
��?|j|
��Q��|jjD]}|j|��|S)Nrzsos_commands/host/hostnamez"data/insights_commands/hostname_-f�	localhost�.�r����z	etc/hosts�#)�is_sos�is_insights�get_file_content�split�len�append�regex_items�add�join�strip�
splitlines�
startswith�opts�domains)�self�archive�items�_file�contentr�
top_domain�_hosts�line�hostln�host�domains            �?/usr/lib/python3/dist-packages/sos/cleaner/preppers/hostname.py�_get_items_for_hostnamez'HostnamePrepper._get_items_for_hostnames��������>�>�0�E�
�
 �
 �8�E��*�*�5�1���w�+�-��m�m�C�(�G��7�|�a�����W�Q�Z�(�� � ��,�0�0�'�!�*�>��7�|�a��!�X�X�g�b�c�l�3�
����Z�-�-�/�0��L�L�����)��)�)�+�6���%�%�'�	'�D����s�#�{�d�':���Z�Z�\�!�"�%�F��
'���t�z�z�#��'�1�,��$�$�Z�0�4�4�T�:��L�L��&�	
'�		'��i�i�'�'�	!�F��L�L�� �	!���N)�__name__�
__module__�__qualname__�__doc__�namer(�r)r'rrs��	��D�#r)rN)�sos.cleaner.preppersrrr/r)r'�<module>r1s��,�1�j�1r)

Zerion Mini Shell 1.0