o
    O6ufþ  ã                   @   s&   d dl mZmZ G dd„ deeƒZdS )é    )ÚPluginÚRedHatPluginc                   @   s,   e Zd ZdZdZdZdZdd„ Zdd„ Zd	S )
ÚRhuizRed Hat Update InfrastructureÚrhui)zrhui-manager)ú/etc/rhui/rhui-tools.confc                 C   s4   |   g d¢¡ |  d¡ | jg d¢dddid� d S )N)r   z'/etc/rhui/registered_subscriptions.confz/etc/pki/rhui/*z#/var/log/rhui-subscription-sync.logz/var/cache/rhui/*z/root/.rhui/*z/var/log/rhui/*z/var/log/rhui-installer/*z/etc/pki/rhui/**/*.key)zrhui-manager statuszrhui-manager cert infoz!ls -lR /var/lib/rhui/remote_shareé<   ÚPYTHONUNBUFFEREDÚ1)ÚtimeoutÚenv)Úadd_copy_specÚadd_forbidden_pathÚadd_cmd_output)Úself© r   ú9/usr/lib/python3/dist-packages/sos/report/plugins/rhui.pyÚsetup   s
   


üz
Rhui.setupc                 C   s@   |   ddd¡ |   ddd¡ dD ]}|   dd	|› d
�d¡ qd S )Nz/root/\.rhui/answers.yaml.*z1(\s*(rhui_manager|registry)_password\s*:)\s*(\S+)z
\1********r   z(registry_password:)\s*(.+)z\1 ********)Ú	csrftokenÚ	sessionidz/root/\.rhui/.*/cookies.txtú(z	\s+)(\S+))Údo_path_regex_sub)r   Úcookier   r   r   Úpostproc-   s    ýþ
ýÿzRhui.postprocN)	Ú__name__Ú
__module__Ú__qualname__Ú
short_descÚplugin_nameÚcommandsÚfilesr   r   r   r   r   r   r      s    r   N)Úsos.report.pluginsr   r   r   r   r   r   r   Ú<module>   s   
