HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/sos/report/plugins/__pycache__/oratab.cpython-39.opt-1.pyc
a

\��h��@s2ddlZddlmZmZmZGdd�dee�ZdS)�N)�Plugin�RedHatPlugin�	PluginOptc@s6eZdZdZdZdZdZeddedd�gZ	dd	�Z
d
S)�Oratabz.Oratab discovery for Oracle instances on Linux�oratab)Zservices)rz/etc/oratabzlocation of the oratab file)�defaultZval_typeZdescc
s���d�}tj�|�r�z�t��t|ddd��J}|����D],}|�d�s:|�	�sRq:��
|�d�d�q:Wd�n1s|0Ydd	g}����fd
d�|D��Wn<t
y�}z$��d|�d
|���WYd}~dSd}~00n
��d�dS)Nr�rzUTF-8)�encoding�#�:�z
dbs/init*.orazdbs/spfile*.oracs"g|]}�D]}��||��qqS�)Z	path_join)�.0Zdbfile�path��	path_list�selfr
�=/usr/lib/python3.9/site-packages/sos/report/plugins/oratab.py�
<listcomp>.s�z Oratab.setup.<locals>.<listcomp>zCould not open conf file z: z@Could not locate oratab file. Oracle data will not be collected.)Z
get_option�osr�isfile�set�open�read�
splitlines�
startswith�strip�add�splitZ
add_copy_spec�IOErrorZ
_log_errorZ	_log_warn)rZora_tabZofile�lineZdbfiles�exr
rr�setups&
4��zOratab.setupN)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesr�strZoption_listr"r
r
r
rr
s��r)rZsos.report.pluginsrrrrr
r
r
r�<module>	s