U
    *b                     @   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 InfrastructureZrhui)zrhui-manager)/etc/rhui/rhui-tools.confc              	   C   sD   |  dddddddg | jdd	d
 | jdddgdddid d S )Nr   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/etc/pki/rhui/**/*.keyT)	recursivezrhui-manager statuszrhui-manager cert infoz!ls -lR /var/lib/rhui/remote_share<   ZPYTHONUNBUFFERED1)Ztimeoutenv)Zadd_copy_specZadd_forbidden_pathZ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 qd S )Nz/root/\.rhui/answers.yaml.*z&(\s*rhui_manager_password\s*:)\s*(\S+)z
\1********)Z	csrftokenZ	sessionidz/root/\.rhui/.*/cookies.txtz(%s\s+)(\S+))Zdo_path_regex_sub)r
   Zcookier   r   r   postproc,   s    zRhui.postprocN)	__name__
__module____qualname__Z
short_descZplugin_nameZcommandsfilesr   r   r   r   r   r   r      s   r   N)Zsos.report.pluginsr   r   r   r   r   r   r   <module>   s   