U
    *bt                     @   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Zdd ZdS )AlternativeszSystem alternativesalternatives)Z	chkconfig)r   c                    s   |  ddi | d g }dddddg}| d	}|d
 dkr|d  D ]"}| d }||krL|| qLd |  fdd|D  d S )Nzalternatives --display java.*Zinsights_display_javazalternatives --versionZcdrecordZldZmkisofsZwhoisZxinputrczalternatives --listZstatusr   outputzalternatives --display %sc                    s   g | ]} | qS  r   ).0altZdisp_cmdr   A/usr/lib/python3/dist-packages/sos/report/plugins/alternatives.py
<listcomp>-   s     z&Alternatives.setup.<locals>.<listcomp>)Zadd_cmd_tagsZadd_cmd_outputZcollect_cmd_output
splitlinessplitappend)selfZaltsignoreresliner	   r   r
   r   setup   s(     

zAlternatives.setupN)__name__
__module____qualname__Z
short_descZplugin_nameZpackagesZcommandsr   r   r   r   r   r      s
   r   N)Zsos.report.pluginsr   r   r   r   r   r   r   <module>   s   