![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3/dist-packages/sos/policies/distros/__pycache__/ |
o i��d� � @ s, d dl mZmZ d dlZG dd� de�ZdS )� )�RedHatPolicy� OS_RELEASENc s@ e Zd ZdZdZddgZ d� fdd� Zed d d��Z� Z S )�RockyPolicy�Rocky Linuxz$Rocky Enterprise Software Foundation)zDistribution Websitezhttps://rockylinux.org)zVendor Websitezhttps://resf.orgNTc s t t| �j||||d� d S )N)�sysroot�init� probe_runtime�remote_exec)�superr �__init__)�selfr r r r �� __class__� �</usr/lib/python3/dist-packages/sos/policies/distros/rocky.pyr s �zRockyPolicy.__init__� c C s� |r| j |v S tj�t�sdS tj�d�sdS ttd�� }|D ]}|�d�r3d|v r3 W d � dS qW d � dS 1 s?w Y dS )NFz/etc/rocky-release�r�NAMEr T)�distro�os�path�existsr �isfile�open� startswith)�cls�remote�f�liner r r �check s$ �� ��zRockyPolicy.check)NNTN)r ) �__name__� __module__�__qualname__r �vendor�vendor_urlsr �classmethodr � __classcell__r r r r r s ��r )�sos.policies.distros.redhatr r r r r r r r �<module> s