HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/clear_containers.cpython-38.pyc
U

i��d�	�@s.ddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�IndependentPluginc@s>eZdZdZdZdZdZefZdZdd�Z	dd	�Z
d
d�ZdS)
�ClearContainersz'Intel(R) Clear Containers configurationZclear_containers)�systemZvirtZ	containerz
cc-runtime)zcc-proxycCsVdg}d�|j�}|�|�d}|��D]}|dkr(|�|�q(t|�}|�|�dS)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)�selfZconfig_files�cmdZconfigsZconfig�r�E/usr/lib/python3/dist-packages/sos/report/plugins/clear_containers.py�attach_cc_config_filess�z&ClearContainers.attach_cc_config_filescCstdg}d�|j�}|�|�d}|��D]0}t�d|�}|r(|�d�}|rT|�|�qZq(t|�}|�	||j
�dS)Nz-/var/lib/clear-containers/runtime/runtime.log�	{} cc-envrz\bGlobalLogPath\b\s+=\s+"(.+)"�)rr	r
r�re�search�grouprr
r�limit)rZ	log_filesrr�line�resultZglobal_logfilerrr�attach_cc_log_files.s�

z#ClearContainers.attach_cc_log_filescCsN|�d�|_|�d�rd|_|�d�|j��|��|��|jdd�dS)NZlog_sizeZall_logsrzcc-shim)Z
identifier)Z
get_optionrZadd_cmd_outputrr	rrZadd_journal)rrrr�setupDs
zClearContainers.setupN)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesr	Zpackages�servicesrrrrrrrrsr)rZsos.report.pluginsrrrrrrr�<module>	s