File: //lib/python3/dist-packages/sos/policies/distros/__pycache__/rocky.cpython-310.pyc
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