U
    -Ø_gÒ  ã                   @   s&   d dl mZmZ G dd„ deeƒZdS )é    )ÚPluginÚRedHatPluginc                   @   s0   e Zd ZdZdZdZdZdZdd„ Zdd	„ Z	d
S )ÚAnacondazAnaconda installerÚanaconda)Úsystem)r   )z/var/log/anaconda.logú/var/log/anacondac                 C   sB   dg| _ |  d¡r | j  d¡ n| j dddg | _ |  | j ¡ d S )Nú/root/anaconda-ks.cfgr   z/var/log/anaconda.*z/root/install.logz/root/install.log.syslog)Ú	copypathsZ
path_isdirÚappendZadd_copy_spec©Úself© r   ú=/usr/lib/python3/dist-packages/sos/report/plugins/anaconda.pyÚsetup   s    ÿ
ýzAnaconda.setupc                 C   s,   |   ddd¡ |   ddd¡ |  | j¡ d S )Nr   z(\s*rootpw\s*).*z
\1********z(user.*--password=*\s*)\s*(\S*))Zdo_file_subZdo_paths_http_subr	   r   r   r   r   Úpostproc+   s    ýýzAnaconda.postprocN)
Ú__name__Ú
__module__Ú__qualname__Z
short_descZplugin_nameZprofilesZpackagesÚfilesr   r   r   r   r   r   r      s   r   N)Zsos.report.pluginsr   r   r   r   r   r   r   Ú<module>	   s   