o
    *bK                     @   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 )VeritaszVeritas softwareZveritas)ZclusterZstoragescriptz/opt/VRTSspt/VRTSexplorerzPath to VRTSexploer script)defaultZdescc                 C   s   |  | dS )Nr   )Zpath_isfile
get_option)self r
   </usr/lib/python3/dist-packages/sos/report/plugins/veritas.pycheck_enabled   s   zVeritas.check_enabledc                 C   sh   |  | d}|d dkr0d}|d D ]}| }| d|}qt|dkr2| |d  dS dS dS )	z= interface with vrtsexplorer to capture veritas related data r   statusr    outputzftp (.*tar.gz)   N)Zexec_cmdr   stripZdo_regex_find_alllenZadd_copy_spec)r	   rtarfileliner
   r
   r   setup   s   zVeritas.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   