U
    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 HostZ
atomichost)Z	containerinfoFz!gather atomic info for each image)defaultZdescc                 C   s
   | j  S )N)ZpolicyZin_container)self r	   ?/usr/lib/python3/dist-packages/sos/report/plugins/atomichost.pycheck_enabled   s    zAtomicHost.check_enabledc                 C   sH   |  d | drD| d}t|d  D ]}|  d| q.d S )Nzatomic host statusr   zdocker images -qoutputzatomic info {0})Zadd_cmd_outputZ
get_optionZexec_cmdset
splitlinesformat)r   ZimagesZimager	   r	   r
   setup   s
    


zAtomicHost.setupN)
__name__
__module____qualname__Z
short_descZplugin_nameZprofilesr   Zoption_listr   r   r	   r	   r	   r
   r      s   r   N)Zsos.report.pluginsr   r   r   r   r	   r	   r	   r
   <module>   s   