o
    id@                     @   s*   d dl mZmZmZ G dd deeZdS )    )PluginRedHatPlugin	PluginOptc                   @   s8   e Zd ZdZdZdZeddddgZdd	 Zd
d Z	dS )
AtomicHostzAtomic Host
atomichost)	containerinfoFz!gather atomic info for each image)defaultdescc                 C   s
   | j  S )N)policyin_container)self r   ?/usr/lib/python3/dist-packages/sos/report/plugins/atomichost.pycheck_enabled   s   
zAtomicHost.check_enabledc                 C   sL   |  d | dr"| d}t|d  D ]}|  d| qd S d S )Nzatomic host statusr   zdocker images -qoutputzatomic info {0})add_cmd_output
get_optionexec_cmdset
splitlinesformat)r   imagesimager   r   r   setup   s   


zAtomicHost.setupN)
__name__
__module____qualname__
short_descplugin_nameprofilesr   option_listr   r   r   r   r   r   r      s    r   N)sos.report.pluginsr   r   r   r   r   r   r   r   <module>   s   
