%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/clear_containers.cpython-312.pyc

�

i��d�	��4�ddlZddlmZmZGd�dee�Zy)�N)�Plugin�IndependentPluginc�8�eZdZdZdZdZdZefZdZd�Z	d�Z
d�Zy	)
�ClearContainersz'Intel(R) Clear Containers configuration�clear_containers)�system�virt�	containerz
cc-runtime)zcc-proxyc��dg}dj|j�}|j|�d}|j�D]}|dk7s�	|j	|��t|�}|j
|�y)Nz_/etc/clear-containers/configuration.toml/usr/share/defaults/clear-containers/configuration.tomlz!{} --cc-show-default-config-paths�output�)�format�runtime�exec_cmd�
splitlines�append�set�
add_copy_spec)�self�config_files�cmd�configs�configs     �E/usr/lib/python3/dist-packages/sos/report/plugins/clear_containers.py�attach_cc_config_filesz&ClearContainers.attach_cc_config_filess��J�
��2�8�8����F���-�-��$�X�.���(�(�*�	,�F���|��#�#�F�+�	,�
�<�(�����<�(�c�\�dg}dj|j�}|j|�d}|j�D]@}t	j
d|�}|s�|j
d�}|r|j|�nt|�}|j||j�y)Nz-/var/lib/clear-containers/runtime/runtime.log�	{} cc-envrz\bGlobalLogPath\b\s+=\s+"(.+)"�)rrrr�re�search�grouprrr�limit)r�	log_filesrr�line�result�global_logfiles       r�attach_cc_log_filesz#ClearContainers.attach_cc_log_files.s���
<�
�	�
� � ����.�����s�#�H�-���%�%�'�	�D��Y�Y�@�$�G�F��!'���a���!��$�$�^�4��
	��	�N�	����9�d�j�j�1rc��|jd�|_|jd�rd|_|jdj|j��|j�|j
�|jd��y)N�log_size�all_logsrzcc-shim)�
identifier)�
get_optionr#�add_cmd_outputrrrr(�add_journal)rs r�setupzClearContainers.setupDsk���_�_�Z�0��
��?�?�:�&��D�J����K�.�.�t�|�|�<�=��#�#�%�� � �"����I��.rN)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesr�packages�servicesrr(r0�rrrrs1��:�J�$�K�.�H��G��z�H��H�)�*2�,/rr)r �sos.report.pluginsrrrr9rr�<module>r;s��
�8�A/�f�/�A/r

Zerion Mini Shell 1.0