Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/clsentry/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/clsentry/__pycache__/client.cpython-311.pyc

�

�tg
���ddlZddlmZddlmZmZddlmZddlm	Z	m
Z
ddlmZm
Z
ddlmZddlmZdd	lmZdd
lmZGd�de��ZGd
�de��ZdS)�N)�RequestException)�cpapi�get_lve_version)�get_cl_edition_readable)�get_rhn_systemid_value�get_username)�get_ip_addr�get_hostname)�UNKNOWN_CP_NAME)�Client)�RequestsHTTPTransport)�get_pkg_versionc���eZdZ�fd�Z�xZS)�SafeRequestsHTTPTransportc�r��	t���|||��dS#t$rYdSwxYw)N)�super�sendr)�self�url�data�headers�	__class__s    ���/builddir/build/BUILDROOT/alt-python27-cllib-3.4.16-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clsentry/client.pyrzSafeRequestsHTTPTransport.sendsL���	��G�G�L�L��d�G�,�,�,�,�,���	�	�	�
�D�D�	���s�#(�
6�6)�__name__�
__module__�__qualname__r�
__classcell__�rs@rrrs8����������������rc�8��eZdZdZ�fd�Zed���Z�xZS)�UserlandClientz=
    Userland's sentry client with some common settings.
    c���|�|���tgddgddddtd���t	��j|fi|��dS)N�sentry�ravenTi��d)z$clsentry.processors.UserlandSanitize)�tags�ignore_exceptions�
exclude_paths�auto_log_stacks�string_max_length�list_max_length�
processors�	transport)�update�_get_user_tags�KeyboardInterruptrr�__init__)r�dsn�optionsrs   �rr1zUserlandClient.__init__%s��������'�'�)�)�!�"���� $�!%�"�D�3�
�
�	�	�	�"	������(�(��(�(�(�(�(rc��tj��}|r|�d��nd}|r|�d��nt}tj��rdnd}id|�d|�d|�dtd	���d
t
���dtd���d
t��d�dtd���dtd���dtd���dtd���dtd���dtd���dtd���dtj
���dt���dtt�����S)z?
        Get tags for easy search
        :rtype: dict
        �versionN�name�WP2zControl Panel NamezControl Panel VersionzControl Panel ProductzCloudLinux version�
os_releasezCloudlinux edition�Architecture�architecture�lve_versionr�
lvemanagerzalt-python27-cllibz	lve-statsz	lve-utilszcl-end-server-toolszcl-node-exporter�cagefs�kernel�username�
ip_address)r�get_cp_description�getr�is_wp2_environmentrrrr�platform�releaserr	r
)�cls�cp_description�
cp_version�cp_name�
cp_products     rr/zUserlandClient._get_user_tags9s����1�3�3��6D�N�^�'�'�	�2�2�2�$�
�0>�S�.�$�$�V�,�,�,�O��#�6�8�8�B�U�U�d�
�
� �'�
�#�Z�
�
$�Z�
�
!�"8��"F�"F�	
�

!�"9�";�";�
�
�2�>�B�B�

�
�?�,�,�Q�/�
�
�/�,�7�7�
�
!�/�2F�"G�"G�
�
���5�5�
�
���5�5�
�
"�?�3H�#I�#I�
�
��0B� C� C�
�
�o�h�/�/�
� 
�h�&�(�(�!
�"
����#
�$
�+�l�n�n�5�5�%
�	
r)rrr�__doc__r1�classmethodr/rrs@rr!r!!s]���������)�)�)�)�)�(�
�
��[�
�
�
�
�
rr!)rD�requests.exceptionsr�clcommonrr�clcommon.lib.cleditionr�clcommon.utilsrr�clcommon.lib.networkr	r
�clcommon.cpapi.constrr$r�raven.transportr
�clsentry.utilsrrr!�rr�<module>rVs#������0�0�0�0�0�0�+�+�+�+�+�+�+�+�:�:�:�:�:�:�?�?�?�?�?�?�?�?�:�:�:�:�:�:�:�:�0�0�0�0�0�0�������1�1�1�1�1�1�*�*�*�*�*�*������ 5����6
�6
�6
�6
�6
�V�6
�6
�6
�6
�6
r

Hacked By AnonymousFox1.0, Coded By AnonymousFox