o
    O6uf�  ã                   @   s,   d dl Z d dlmZmZ G dd„ deƒZdS )é    N)ÚRedHatPolicyÚ
OS_RELEASEc                       s@   e Zd ZdZdZddgZ		d‡ fdd„	Zedd
d„ƒZ‡  Z	S )ÚRockyPolicyúRocky Linuxz$Rocky Enterprise Software Foundation)zDistribution Websitezhttps://rockylinux.org)zVendor Websitezhttps://resf.orgNTc                    s   t ƒ j||||d� d S )N)ÚsysrootÚinitÚprobe_runtimeÚremote_exec)ÚsuperÚ__init__)Úselfr   r   r   r	   ©Ú	__class__© ú</usr/lib/python3/dist-packages/sos/policies/distros/rocky.pyr      s   

þzRockyPolicy.__init__Ú c                 C   sŒ   |r| j |v S tj t¡sdS tj d¡sdS ttdƒ� }|D ]}| d¡r3d|v r3 W d   ƒ dS qW d   ƒ dS 1 s?w   Y  dS )NFz/etc/rocky-releaseÚrÚNAMEr   T)ÚdistroÚosÚpathÚexistsr   ÚisfileÚopenÚ
startswith)ÚclsÚremoteÚfÚliner   r   r   Úcheck   s$   

ü€
ÿúzRockyPolicy.check)NNTN)r   )
Ú__name__Ú
__module__Ú__qualname__r   ÚvendorÚvendor_urlsr   Úclassmethodr   Ú__classcell__r   r   r   r   r      s    þÿr   )r   Úsos.policies.distros.redhatr   r   r   r   r   r   r   Ú<module>   s   
