�
i��dM � �, � d dl mZmZ G d� dee� Zy)� )�Plugin�IndependentPluginc �, � e Zd ZdZdZdZdZdZd� Zd� Z y)�Fwupdzfwupd information�fwupd)�system)r c �L � | j g d�� | j d� y )N)zfwupdmgr get-approved-firmwarez*fwupdmgr get-devices --no-unreported-checkzfwupdmgr get-historyzfwupdmgr get-remotesz)/usr/libexec/fwupd/fwupdagent get-devicesz)/usr/libexec/fwupd/fwupdagent get-updatesz
/etc/fwupd)�add_cmd_output�
add_copy_spec��selfs �:/usr/lib/python3/dist-packages/sos/report/plugins/fwupd.py�setupzFwupd.setup s% � ����
� �
���<�(� c �P � | j ddd� | j ddd� y )Nz/etc/fwupd/remotes.d/*z(Password)=(.*)z\1=********z/etc/fwupd/redfish.conf)�do_path_regex_sub�do_file_subr s r �postproczFwupd.postproc" |