Edit File: ispmanager.cpython-311.opt-1.pyc
� �ea( � � � d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlmZ d dl m Z d dlmZm Z d dlmZ d d lmZ d Zd� Zd� Zd ZdZdZdZddefd�Zd� Zefd�Zd� Zd� Zdefd�Zd� Z G d� de� � Z dS )� )�print_function)�absolute_import)�divisionN)�Dict)� mysql_lib)�NotSupported�NoDBAccessData)�GeneralPanelPluginV1)�Feature� ISPManagerc �@ � t j � d� � S )N�/usr/local/mgr5/sbin/mgrctl)�os�path�isfile� � ��/builddir/build/BUILDROOT/alt-python27-cllib-3.3.5-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/cpapi/plugins/ispmanager.py� _is_5_versionr s � � �7�>�>�7�8�8�8r c �\ � t j � d� � p t � � S )N�/usr/local/ispmgr/bin/ispmgr)r r r r r r r �detectr s � � �7�>�>�8�9�9�L�]�_�_�Lr z!/usr/local/ispmgr/etc/ispmgr.confz)/usr/local/mgr5/etc/ispmgr.conf.d/db.confz(\S+) "([^"]+)" {([^}]+)}z (\S+)\s+(\S+)c � �� t � � }d�|r�t � � �|D ]�}|� � � }t |� � dk r?|� t |g� � � � �� |d � � �ht |� � dk r�� |d � � ��t |� � }t � � }t j t |� � � � � D ]�\ } } }t j t |� � }| | k r�|d|fv r�t �fd�|D � � � � } t |� � � � � � t | � � � � � � � r|� | � � ��|� � � |S )aK /usr/local/ispmgr/etc/ispmgr.conf parser :param sectype: Type sector for example: Service or DbServer or Account :param secname: Name sector. May be different :param seckeys: Name key for retrieving and filtering :param path: path to config file default /usr/local/ispmgr/etc/ispmgr.conf :return: list N� r � c �* �� g | ]\ }}��|�v �||f��S �Nr )�.0�k�v�seckeys_extracteds �r � <listcomp>zconf_pars.<locals>.<listcomp>>