%PDF- %PDF-
Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/clear_containers.cpython-312.pyc |
� i��d� � �4 � d dl Z d dlmZmZ G d� dee� Zy)� N)�Plugin�IndependentPluginc �8 � e Zd ZdZdZdZdZefZdZd� 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 ] }|dk7 s� |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_files s � �J� �� 2�8�8����F���-�-��$�X�.���(�(�*� ,�F���|��#�#�F�+� ,� �<�(�����<�(� c �\ � dg}dj | j � }| j |� d }|j � D ]@ }t j d|� }|s�|j d� }|r|j |� n t |� }| j || j � y )Nz-/var/lib/clear-containers/runtime/runtime.log� {} cc-envr z\bGlobalLogPath\b\s+=\s+"(.+)"� )r r r r �re�search�groupr r r �limit)r � log_filesr r �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�1r c � � | j d� | _ | j d� rd | _ | j dj | j � � | j � | j � | j d�� y )N�log_size�all_logsr zcc-shim)� identifier)� get_optionr# �add_cmd_outputr r r r( �add_journal)r s r �setupzClearContainers.setupD sk � ��_�_�Z�0�� ��?�?�:�&��D�J����K�.�.�t�|�|�<�=��#�#�%�� � �"����I��.r N)�__name__� __module__�__qualname__� short_desc�plugin_name�profilesr �packages�servicesr r( r0 � r r r r s1 � �:�J�$�K�.�H��G��z�H��H�)�*2�,/r r )r �sos.report.pluginsr r r r9 r r �<module>r; s �� � 8�A/�f�/� A/r