Hacked By AnonymousFox
�
)�fF? � � � d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
mZmZ
d dlmZ d dlmZ d dlmZmZ d dlmZ d dlmZ d d lmZ d d
lmZ d dlmZ d dlmZm Z m!Z! d d
l"m#Z#m$Z$ d dl%m&Z' d dl(m)Z* d dl+m,Z, d dl-m.Z.m/Z/ da0dZ1dZ2dZ3d� Z4d� Z5d� Z6dDd�Z7 G d� de8� � Z9e1fd�Z:dEd�Z;d� Z<d� Z= G d � d!e� � Z>d"� Z?d#� Z@dFd%�ZAdFd&�ZBd'� ZCd(� ZDdGd*�ZEdFd+�ZFd,� ZGdEd-�ZHdEd.�ZIdEd/�ZJdEd0�ZKd1� ZLd2� ZMd3� ZN G d4� d5eO� � ZPd6� ZQd7� ZRd8� ZSd9� ZTdFd:�ZUd;� ZVd<eWd=eXfd>�ZY dHd?eZeZe d@eZeW dz dAe[dBe[d=eWf
dC�Z\dS )I� )�absolute_importN)�gethostname�error)�Any)�urlparse)�minidom�DOMException)�
ExpatError)�PrettyTable)�FormattedException)�cpapi)�LIMIT_LVP_ID)�CPAPIExternalProgramFailed�NotSupported�ParsingError)�
MySQLGovernor�MySQLGovException)�engine)�mkdir��uid_max)�get_max_lve_id�USER_NOTIFICATIONS_OFF_MARKERz/proc/lve/listz"/var/run/mysql-governor-config.xmlz!/etc/container/mysql-governor.xmlc �: � t �t � � a t S )z'
Get current maximum of LVE ID
)�
MAX_LVE_IDr � � ��/builddir/build/BUILDROOT/lve-stats-4.2.8-1.el8.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/lvestats/lib/commons/func.py�get_current_max_lve_idr ) s � �
��#�%�%�
��r c � � |r || |z }} |� | S �Nr )�a�bs r �gcdr$ 3 s&