Файловый менеджер - Редактировать - /opt/cloudlinux/venv/lib/python3.11/site-packages/xray/adviser/__pycache__/clwpos_get.cpython-311.pyc
Назад
� YQeh� � � � d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl mZ ddlm Z ddlmZ n# e$ r d� ZY nw xY wd d lmZ d dlmZ ddlmZ dd lmZ ej d� � Z G d� d� � ZdS )zG This module contains a wrapper around `clwpos-user get` local utility � N)�Optional)�Feature)�is_panel_feature_supported)�CloudlinuxSummary)�is_wpos_visiblec � � d S )N� ��usernames �N/opt/cloudlinux/venv/lib64/python3.11/site-packages/xray/adviser/clwpos_get.py�<lambda>r s � �t� � � )� get_client)�NginxUserCache)�get_plugin_status)�any_suite_allowed_on_server�clwpos_utilc � � e Zd ZdZdZdededdfd�Zededefd�� � Z e dee fd �� � Ze defd �� � Z dededee fd�Zed � � � Zd� Zdededefd�Zedefd�� � Zededdfd�� � Zd� ZdS )�ClWposGetterz/usr/bin/clwpos-userz'/usr/sbin/clwpos_collect_information.pyr �domain�returnNc �N � | � |� � rt � d� � dS | � ||� � }t � dt |� � � � |r| � |� � dS t � d||� � dS )z8Construct and POST metadata to Smart Advice microservicez)ea-nginx detected, skipping metadata sendNzGot WPOS: %sz4Metadata for user %s with domain %s will not be sent)�nginx_cache_for_user�logger�info�construct_metadata�debug�str�send�error)�selfr r � json_datas r � post_metadatazClWposGetter.post_metadata'