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g Zdd„ Zdd„ Z	d	S )
ÚOpenStackEDPMz7Installation information from OpenStack EDPM deploymentÚopenstack_edpm)Z	openstackr   zedpm-container-shutdownc                 C   s   dddg| _ |  | j ¡ d S )Nz/etc/os-net-config/z/var/lib/config-data/z/var/lib/edpm-config/)Úedpm_log_pathsZadd_copy_spec)Úself© r   úC/usr/lib/python3/dist-packages/sos/report/plugins/openstack_edpm.pyÚsetup   s
    ýzOpenStackEDPM.setupc                 C   s"   d}| j D ]}|  ||d¡ q
d S )NzK(".*(key|password|pass|secret|database_connection))([":\s]+)(.*[^"])([",]+)z\1\3*********\5)r   Zdo_path_regex_sub)r   ZregexpÚpathr   r   r	   Úpostproc!   s    
zOpenStackEDPM.postprocN)
Ú__name__Ú
__module__Ú__qualname__Z
short_descZplugin_nameZprofilesÚservicesr   r
   r   r   r   r   r	   r      s   
r   N)Zsos.report.pluginsr   r   r   r   r   r   r	   Ú<module>   s   