U
    -_g{                     @   s&   d dl mZmZ G dd deeZdS )    )PluginRedHatPluginc                   @   s    e Zd ZdZdZdZdd ZdS )	Rpmostreezrpm-ostree image/package systemZ	rpmostree)z
rpm-ostreec                 C   sN   |  d dddddg}| dd |D  d	d
dg}|D ]}| | q:d S )Nz/etc/ostree/remotes.d/zstatus --jsonZkargszdb listzdb diffz	--versionc                 S   s   g | ]}d | qS )zrpm-ostree  ).0Zsubcmdr   r   >/usr/lib/python3/dist-packages/sos/report/plugins/rpmostree.py
<listcomp>    s     z#Rpmostree.setup.<locals>.<listcomp>zrpm-ostreedzrpm-ostreed-automaticzrpm-ostree-bootstatus)Zadd_copy_specZadd_cmd_outputZadd_journal)selfZsubcmdsZunitsZunitr   r   r   setup   s    
zRpmostree.setupN)__name__
__module____qualname__Z
short_descZplugin_nameZpackagesr
   r   r   r   r   r      s   r   N)Zsos.report.pluginsr   r   r   r   r   r   r   <module>   s   