Your IP : 216.73.217.13


Current Path : /usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/containers_common.cpython-38.pyc

U

���b
�@s8ddlmZmZmZmZddlZGdd�deee�ZdS)�)�Plugin�RedHatPlugin�UbuntuPlugin�	PluginOptNc@s6eZdZdZdZdZdZeddedd�gZ	d	d
�Z
dS)�ContainersCommonz;Common container configs under {/etc,/usr/share}/containersZcontainers_common)Z	container)zcontainers-common�
rootlessusers�z,colon-delimited list of users to collect for)�defaultZval_typeZdesccs�|�ddddg�|�d�}g}|r8dd�|�d�D�}d	d
ddd
dddddddddddddddg}|D]H�|�dtj�d���|�d��|j�fd d�|D�d!d"�qhdS)#Nz/etc/containers/*z/usr/share/containers/*z/etc/subuidz/etc/subgidrcSsg|]}|r|�qS�r
)�.0�xr
r
�F/usr/lib/python3/dist-packages/sos/report/plugins/containers_common.py�
<listcomp>%sz*ContainersCommon.setup.<locals>.<listcomp>�:zpodman infoz%podman unshare cat /proc/self/uid_mapz%podman unshare cat /proc/self/gid_mapz
podman imageszpodman images --digestsz
podman pod pszpodman port --allz	podman pszpodman ps -azpodman stats --no-stream --allzpodman versionzpodman volume lszbuildah infoz&buildah unshare cat /proc/self/uid_mapz&buildah unshare cat /proc/self/gid_mapzbuildah containerszbuildah containers --allzbuildah imageszbuildah images --allzbuildah versionz%s/.config/containers/z~%szloginctl user-status %scsg|]}d�|f�qS)z#machinectl -q shell %s@ /usr/bin/%sr
)r�cmd��userr
r
rDs�T)Z
foreground)Z
add_copy_specZ
get_option�split�os�path�
expanduserZadd_cmd_output)�selfZ	users_optZ
users_listZuser_subcmdsr
rr
�setupsR�
����zContainersCommon.setupN)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesr�strZoption_listrr
r
r
r
rs��r)Zsos.report.pluginsrrrrrrr
r
r
r
�<module>s