|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /opt/alt/python37/lib/python3.7/site-packages/ssa/autotracing/__pycache__/ |
Upload File : |
B
��cc( � @ s d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl
mZmZm
Z
mZmZmZ ddlmZ ddlmZ dd lmZ dd
lmZmZmZmZmZ ddlmZ dd
lm Z ddl!m"Z"m#Z#m$Z$m%Z%m&Z& e�'d�Z(e)d�dd�Z*G dd� de �Z+eG dd� d��Z,G dd� de�Z-G dd� de-�Z.G dd� de-�Z/e,d�dd�Z0d8e1ee.e/f d�d d!�Z2d9e1e1dd"�d#d$�Z3d:e1e)dd&�d'd(�Z4d;e1e)dd&�d)d*�Z5d<e1ee
e1ee1 f d+�d,d-�Z6e
d�d.d/�Z7ee
e1e/f d�d0d1�Z8ee1 d�d2d3�Z9dd�d4d5�Z:dd�d6d7�Z;dS )=zF
This module contains a config parser for cloudlinux-xray-autotracing
� N)�ConfigParser)� dataclass)�Enum)�Any�Union�Tuple�Iterator�List�Optional)�ClPwd)�cpusers)�CPAPIException)�is_cl_solo_edition�is_container�
CLEditions�CLEditionDetectionError�SupportedEditions� )� flag_file)�SSAError)�umask_0�set_privileges�is_xray_user_agent_active�xray_version�$is_io_throttling_detection_availablezautotracing.config)�returnc
C sj yt jdd�} t�d| � W n4 tk
rP } zt�dt|j�� dS d}~X Y nX | dkr^dS | tj j
kS )zACurrently Auto tracing feature is not supported on Shared editionT)�skip_marker_checkzCurrent edition: %szUnable to detect edition: %sFN)r �get_cl_edition�logger�infor �error�str�messager �SHARED�value)�edition�e� r'