o
    *bU  ã                   @   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)Zadd_cmd_outputZ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Password=********z/etc/fwupd/redfish.conf)Zdo_path_regex_subZdo_file_subr   r	   r	   r
   Úpostproc"   s   ýýzFwupd.postprocN)
Ú__name__Ú
__module__Ú__qualname__Z
short_descZplugin_nameZprofilesÚservicesZpackagesr   r   r	   r	   r	   r
   r      s    r   N)Zsos.report.pluginsr   r   r   r	   r	   r	   r
   Ú<module>   s   