Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Upload File : |
o -�_g2 � @ s6 d dl mZmZ G dd� de�ZG dd� dee�ZdS )� )�Plugin�RedHatPluginc @ s e Zd ZdZdZdZdd� ZdS )�DockerDistributionzDocker Distribution�docker_distribution)� containerc C s� | � d� | �d� | �d�}| �|�rCt|dd��}|D ]}d|v r0|�� d }| j|dd � qW d � d S 1 s<w Y d S d S ) Nz/etc/docker-distribution/�docker-distributionz,/etc/docker-distribution/registry/config.ymlzUTF-8)�encoding� rootdirectory� T)�tree)� add_copy_spec�add_journal� path_join�path_exists�open�split�add_dir_listing)�self�conf�file�line�loc� r �H/usr/lib/python3/dist-packages/sos/report/plugins/docker_distribution.py�setup s ��"��zDockerDistribution.setupN)�__name__� __module__�__qualname__� short_desc�plugin_name�profilesr r r r r r s r c s e Zd ZdZ� fdd�Z� ZS )�RedHatDockerDistribution)r c s | � d� t� �� d S )Nz)/etc/docker-distribution/registry/*passwd)�add_forbidden_path�superr )r �� __class__r r r # s zRedHatDockerDistribution.setup)r r r �packagesr � __classcell__r r r$ r r! s r! N)�sos.report.pluginsr r r r! r r r r �<module> s