Server IP : 184.107.3.203 / Your IP : 216.73.216.51 Web Server : Apache System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64 User : adminteladeoro ( 1015) PHP Version : 8.2.28 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
3 ~ �g2 � @ s6 d dl mZmZ G dd� de�ZG dd� dee�ZdS )� )�Plugin�RedHatPluginc @ s e Zd ZdZdZdZdd� ZdS )�DockerDistributionzDocker DistributionZdocker_distribution� containerc C st | j d� | jd� | jd�}| j|�rpt|dd��6}x.|D ]&}d|kr<|j� d }| j|dd � q<W W d Q R X d S ) Nz/etc/docker-distribution/zdocker-distributionz,/etc/docker-distribution/registry/config.ymlzUTF-8)�encodingZ rootdirectory� T)Ztree)Z add_copy_specZadd_journalZ path_joinZpath_exists�open�splitZadd_dir_listing)�selfZconf�file�line�loc� r �)/usr/lib/python3.6/docker_distribution.py�setup s zDockerDistribution.setupN)r )�__name__� __module__�__qualname__Z short_descZplugin_nameZprofilesr r r r r r s r c s e Zd ZdZ� fdd�Z� ZS )�RedHatDockerDistribution�docker-distributionc s | j d� t� j� d S )Nz)/etc/docker-distribution/registry/*passwd)Zadd_forbidden_path�superr )r )� __class__r r r # s zRedHatDockerDistribution.setup)r )r r r Zpackagesr � __classcell__r r )r r r s r N)Zsos.report.pluginsr r r r r r r r �<module> s