관리-도구
편집 파일: config.cpython-37.pyc
B � dG( � @ s d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl mZmZm Z mZmZmZ ddlmZ ddlmZ dd lmZ dd lmZmZmZ ddlmZ dd lmZ ddlm 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�Z.d8e/ee,e-f d�d d!�Z0d9e/e/dd"�d#d$�Z1d:e/e'dd&�d'd(�Z2d;e/e'dd&�d)d*�Z3d<e/ee e/ee/ f d+�d,d-�Z4e d�d.d/�Z5ee e/e-f d�d0d1�Z6ee/ d�d2d3�Z7dd�d4d5�Z8dd�d6d7�Z9dS )=zF This module contains a config parser for cloudlinux-xray-autotracing � N)�ConfigParser)� dataclass)�Enum)�Any�Union�Tuple�Iterator�List�Optional)�ClPwd)�cpusers)�CPAPIException)� CLEditions�CLEditionDetectionError�SupportedEditions� )� flag_file)�SSAError)�umask_0�set_privileges�is_xray_user_agent_active�xray_version�is_kernel_version_supportedzautotracing.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% �G/opt/alt/python37/lib/python3.7/site-packages/ssa/autotracing/config.py�is_edition_supported* s r'