o
    O6ufú  ã                   @   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 InstallerÚcurtin)Úboot)ú/root/curtin-install-cfg.yamlc                 C   s   |   g d¢¡ 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)Úadd_copy_spec)Úself© r   ú;/usr/lib/python3/dist-packages/sos/report/plugins/curtin.pyÚsetup   s   zCurtin.setupc                 C   s^   g d¢}ddg}dd  |¡› d�}dd  |¡› d�}|D ]}|  ||d¡ |  ||d¡ qd S )	N)Úoauth_consumer_keyÚoauth_token_keyÚ	token_keyÚtoken_secretÚconsumer_keyr   r   ú(ú|z)\s*(:|=)(\S*\n.*?\\n)z)\s*(:|=)\s*[a-zA-Z0-9]*z\1\2*********)ÚjoinÚdo_file_sub)r
   Úprotect_keysÚcurtin_filesÚmatch_exp_multilÚ	match_expÚfiler   r   r   Úpostproc   s    þþþûzCurtin.postprocN)	Ú__name__Ú
__module__Ú__qualname__Ú
short_descÚplugin_nameÚprofilesÚfilesr   r   r   r   r   r   r      s    r   N)Úsos.report.pluginsr   r   r   r   r   r   r   Ú<module>   s   