| Server IP : 173.209.174.21 / Your IP : 216.73.216.90 Web Server : Apache/2.4.58 (Ubuntu) System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : nodor ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Upload File : |
�
G%@i�
� �d � d dl mZmZmZmZ G d� de� Z G d� deee� Z G d� dee� Zy) � )�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc �. � e Zd ZdZdZdZdZd� Zd� Zd� Z y) �OpenStackSwiftzOpenStack Swift�openstack_swift)� openstack�openstack_controllerz%/var/lib/config-data/puppet-generatedc �, � | j d� r| j dg� n| j dg� | j d| j dz | j dz | j dz | j dz g� | j d d
d�� y )N�all_logsz/var/log/swift/z/var/log/swift/*.logz/etc/swift/z/swift/etc/*z/swift/etc/swift/*z/swift/etc/xinetd.d/*z"/memcached/etc/sysconfig/memcached�
swift_conf� swift_log)z/etc/swift/swift.confz/var/log/swift/swift.log)�
get_option�
add_copy_spec�var_puppet_gen�
add_file_tags)�selfs �D/usr/lib/python3/dist-packages/sos/report/plugins/openstack_swift.py�setupzOpenStackSwift.setup s� � ��?�?�:�&����!� �
�
���&� �
�
�������.�0����"6�6����"9�9����"F�F�
� �
���%1�(3�
� � c �j � | j d||� | j | j dz ||� y)z Apply regex substitution z/etc/swift/.*\.conf.*z/swift/etc/swift/.*\.conf.*N)�do_path_regex_subr )r �regexp�substs r �apply_regex_subzOpenStackSwift.apply_regex_sub0 s7 � ����7���G�������"@�@��E�
r c � � g d�}ddg}| j ddj |� � d�d� dj |� }| j d|� d�d � y )
N)z.*_pass(wd|word)?�password�
transport_url�
connection�sql_connectionz(^\s*(�|z
)\s*=\s*)(.*)z\1*********z!)\s*=\s*(.*)://(\w*):)(.*)(@(.*))z
\1*********\6)r �join)r �protect_keys�connection_keys�
join_con_keyss r �postproczOpenStackSwift.postproc8 sk � �
��
(�)9�:������c�h�h�|�,�-�]�;��
�
����1�
�����m�_�$E�F��
r N)
�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesr r r r'