U
    -_g                     @   s&   d dl mZmZ G dd deeZdS )    )PluginIndependentPluginc                   @   s,   e Zd ZdZdZdZdZdd Zdd Zd	S )
CurtinzCurt InstallerZcurtin)Zboot)/root/curtin-install-cfg.yamlc              	   C   s   |  dddddddg d S )N/root/curtin-install.logr   z*/etc/default/grub.d/50-curtin-settings.cfgz%/etc/apt/apt.conf.d/90curtin-aptproxyz /etc/apt/sources.list.curtin.oldz//etc/cloud/cloud.cfg.d/50-curtin-networking.cfgz2/etc/cloud/cloud.cfg.d/curtin-preserve-sources.cfg)Zadd_copy_spec)self r   ;/usr/lib/python3/dist-packages/sos/report/plugins/curtin.pysetup   s    zCurtin.setupc                 C   sd   dddddg}ddg}dd	 | d
}dd	 | d}|D ] }| ||d | ||d q>d S )NZoauth_consumer_keyZoauth_token_keyZ	token_keyZtoken_secretZconsumer_keyr   r   (|z)\s*(:|=)(\S*\n.*?\\n)z)\s*(:|=)\s*[a-zA-Z0-9]*z\1\2*********)joinZdo_file_sub)r   Zprotect_keysZcurtin_filesZmatch_exp_multilZ	match_expfiler   r   r	   postproc   s,      zCurtin.postprocN)	__name__
__module____qualname__Z
short_descZplugin_nameZprofilesfilesr
   r   r   r   r   r	   r      s   r   N)Zsos.report.pluginsr   r   r   r   r   r   r	   <module>	   s   