o
    i©¹dM  ã                   @   s&   d dl mZmZ G dd„ deeƒZdS )é    )ÚPluginÚIndependentPluginc                   @   s0   e Zd ZdZdZdZdZdZdd„ Zdd„ Z	d	S )
ÚFwupdzfwupd informationÚfwupd)Úsystem)r   c                 C   s   |   g d¢¡ |  d¡ d S )N)zfwupdmgr get-approved-firmwarez*fwupdmgr get-devices --no-unreported-checkzfwupdmgr get-historyzfwupdmgr get-remotesz)/usr/libexec/fwupd/fwupdagent get-devicesz)/usr/libexec/fwupd/fwupdagent get-updatesz
/etc/fwupd)Úadd_cmd_outputÚadd_copy_spec©Úself© r   ú:/usr/lib/python3/dist-packages/sos/report/plugins/fwupd.pyÚsetup   s   
zFwupd.setupc                 C   s    |   ddd¡ |  ddd¡ d S )Nz/etc/fwupd/remotes.d/*z(Password)=(.*)z\1=********z/etc/fwupd/redfish.conf)Údo_path_regex_subÚdo_file_subr	   r   r   r   Úpostproc"   s   ýýzFwupd.postprocN)
Ú__name__Ú
__module__Ú__qualname__Ú
short_descÚplugin_nameÚprofilesÚservicesÚpackagesr   r   r   r   r   r   r      s    r   N)Úsos.report.pluginsr   r   r   r   r   r   r   Ú<module>   s   