U
    -Ø_gj  ã                   @   s6   d dl mZmZ ddgZddgZG dd„ deeƒZdS )	é    )ÚPluginÚRedHatPluginz/var/log/mistral/z/var/lib/mistral/z/var/log/mistral/*.logz/var/lib/mistral/*/*.logc                   @   s(   e Zd ZdZdZdZdZdZdd„ ZdS )	ÚOpenStackMistralaN  Gather Mistral directories content, both data from /var/lib/mistral
    and its log from /var/log/mistral if it exists (older OSP).
    The data also embed logs for the ansible runs launched via the service,
    meaning we'll be able to properly debug failures therein. The rest of the
    data are the generated environment files, also really useful in order
    to debug an issue at deploy or day-2 operations.
    We filter out on the presence of any "mistral" related container on the
    host - usually the Undercloud presents mistral_engine, mistral_executor
    and mistral_api.
    zOpenStack MistralZopenstack_mistral)Z	openstackZopenstack_undercloud)z.*mistral_enginec                 C   s$   |   d¡r|  t¡ n
|  t¡ d S )NZall_log)Z
get_optionZadd_copy_specÚMISTRAL_DIRECTORIESÚMISTRAL_LOGS)Úself© r   úF/usr/lib/python3/dist-packages/sos/report/plugins/openstack_mistral.pyÚsetup*   s    
zOpenStackMistral.setupN)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Z
short_descZplugin_nameZprofilesZ
containersr
   r   r   r   r	   r      s   r   N)Zsos.report.pluginsr   r   r   r   r   r   r   r   r	   Ú<module>   s   þþ