o
    O6ufz  ã                   @   s.   d dl Z d dlmZmZ G dd„ deeƒZdS )é    N)ÚPluginÚRedHatPluginc                   @   s(   e Zd ZdZdZdZdZdZdd„ ZdS )	ÚAAPreceptorPluginzAAP receptor pluginÚaap_receptor)ÚsysmgmtÚansible)ÚreceptorÚreceptorctl)r   c                 C   s¨   |   g d¢¡ |  d¡r|   dg¡ n|   dg¡ |  ddg¡ |  g d¢¡ t d¡D ]%}| jd	|› d
�dd� | jd	|› d�dd� | jd	|› d�dd�  d S d S )N)z/etc/receptorz/tmp/receptor/*/statusz/var/lib/receptorÚall_logsz/var/log/receptorz/var/log/receptor/*.logz/etc/receptor/tlsz/etc/receptor/*key.pem)zls -llZ /etc/receptorzls -llZ /var/run/receptorzls -llZ /var/run/awx-receptorz/var/run/*receptor/*.sockzreceptorctl --socket z statusÚreceptorctl_status)Úsuggest_filenamez status --jsonzreceptorctl_status.jsonz
 work listzreceptorctl_work_list.json)Úadd_copy_specÚ
get_optionÚadd_forbidden_pathÚadd_cmd_outputÚglob)ÚselfÚs© r   úA/usr/lib/python3/dist-packages/sos/report/plugins/aap_receptor.pyÚsetup   s2   
ÿÿþÿÿÿùzAAPreceptorPlugin.setupN)	Ú__name__Ú
__module__Ú__qualname__Ú
short_descÚplugin_nameÚprofilesÚpackagesÚservicesr   r   r   r   r   r      s    r   )r   Úsos.report.pluginsr   r   r   r   r   r   r   Ú<module>   s   
