%PDF- %PDF-
Direktori : /proc/self/root/lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Current File : //proc/self/root/lib/python3/dist-packages/sos/report/plugins/__pycache__/autofs.cpython-312.pyc |
� i��d( � �d � d dl mZmZmZmZ G d� de� Z G d� dee� Z G d� deee� Zy) � )�Plugin�RedHatPlugin�UbuntuPlugin�DebianPluginc �8 � e Zd ZdZdZdZdZdZd� Zd� Z d� Z d � Zy )�AutofszAutofs on-demand automounter�autofs)�storage�nfs)z/etc/sysconfig/autofsz/etc/default/autofs)r c � � | j dg| j ��� }|D ] }|j d� D ] }|dv s� y �! y)z; testing if autofs debug has been enabled anywhere z%^(DEFAULT_LOGGING|DAEMONOPTIONS)=(.*)� )z--debug�debugTF)� file_grep�files�split)�self�opt�opt1�opt2s �;/usr/lib/python3/dist-packages/sos/report/plugins/autofs.py� checkdebugzAutofs.checkdebug sZ � � �d�n�n�E� *�"�j�j�*��� �D�� � �3�� ���/�/�� � � � c �X � | j dg| j ��� }|D ] }|d c S y)z% capture daemon debug output z^(daemon.*)\s+(\/var\/log\/.*)� N)r r )r �debugout�is r �getdaemondebugzAutofs.getdaemondebug$ s; � � "�4�>�>�"C� /�#'�:�:�/��� �A��Q�4�K� r c �� � | j d� | j ddi� | j d� | j d� | j � r | j | j � � y y )N� /etc/auto*z/etc/autofs.conf�autofs_confr �automount -m)� add_copy_spec� add_file_tags�add_service_status�add_cmd_outputr r �r s r �setupzAutofs.setup, sf � ����<�(����.� �>�?�����)����N�+��?�?�����t�2�2�4�5� r c �v � | j ddd� | j ddd� | j ddd� y )Nr z(password=)[^,\s]*z \1********z/etc/autofs_ldap_auth.confz&(secret[\s]*[=]+[\s]*)(\'|\").*(\'|\")z\1\2********\3r! )�do_path_regex_sub�do_file_sub�do_cmd_output_subr&