U
    -Ø_g  ã                   @   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 )
ÚRhczß
    RHC is a client tool and daemon that connects the system
    to Red Hat hosted services enabling system and
    subscription management. This plugin captures
    configuration files and the output of 'rhc status'.
    z2Red Hat client for remote host configured servicesÚrhc)r   c                 C   s   |   ddg¡ |  dg¡ d S )Nz
/etc/rhc/*z/var/log/rhc-worker-playbookz
rhc status)Zadd_copy_specZadd_cmd_output)Úself© r   ú8/usr/lib/python3/dist-packages/sos/report/plugins/rhc.pyÚsetup   s    þÿz	Rhc.setupc                 C   s(   |   ddd¡ d}d}|   ||d¡ d S )Nz&/etc/rhc/workers/foreman_rh_cloud.tomlz%(FORWARDER_PASSWORD\s*=\s*)(.+)(\"\,)z\1********\3z&/var/log/rhc-worker-playbook/ansible/*z9(\s*\"ansible_ssh_host_key_)(.+)(_public\":\s*)(.+)(\,|$)z\1\2\3********\5)Zdo_path_regex_sub)r   ÚpathZregexpr   r   r   Úpostproc%   s    
þÿzRhc.postprocN)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Z
short_descZplugin_nameZpackagesr	   r   r   r   r   r   r      s   
r   N)Zsos.report.pluginsr   r   r   r   r   r   r   Ú<module>   s   