HEX
Server: Apache
System: Linux insrv.serversdaddy.com 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64
User: jsaha (1066)
PHP: 8.3.6
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3.9/site-packages/sos/report/plugins/__pycache__/clear_containers.cpython-39.pyc
a

^��c�	�@s.ddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�IndependentPluginc@s>eZdZdZdZdZdZefZdZdd�Z	dd	�Z
d
d�ZdS)
�ClearContainersz'Intel(R) Clear Containers configurationZclear_containers)�systemZvirt�	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�G/usr/lib/python3.9/site-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+"(.+)"�)r	r
rr�re�search�groupr
rr�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_outputr	r
rrZadd_journal)rrrr�setupDs
zClearContainers.setupN)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesr
ZpackagesZservicesrrrrrrrrsr)rZsos.report.pluginsrrrrrrr�<module>	s