🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-09 10:18:40 | PHP 8.2.33
📂
/ (Root)
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
xray
/
adviser
/
__pycache__
📍 /opt/cloudlinux/venv/lib/python3.11/site-packages/xray/adviser/__pycache__
🔄 Refresh
✏️
Editing: clwpos_get.cpython-311.pyc
Read Only
� 9Mj�1 � � � d Z ddlZddlZddlZddlZddlZddlZddlZddlm Z ddl mZ ddlm Z ddlmZ n# e$ r d� ZY nw xY wdd lmZ dd lmZ ddlmZ ddlmZ ej d � � ZdZdZdZdefd�Z G d� d� � Z dS )zG This module contains a wrapper around `clwpos-user get` local utility � N)�Optional��build_clwpos_user_cmd)�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_utili � �x �� �returnc � � | �dnt | � � }t |� � t k r|S |dt � dz S )zLReturn a bounded, redaction-marked snippet of subprocess output for logging.N� z...[truncated])�str�len�_CLWPOS_LOG_SNIPPET_MAX)�output�texts r �_log_snippetr 4 sD � ���2�2�S��[�[�D� �4�y�y�+�+�+����(�(�(�)�,<�<�<r c � � e Zd ZdZdZdededdfd�Zededefd�� � Z ded ede fd �Zded edee fd�Zede fd �� � Zed� � � Zd� Zded ede fd�Zedefd�� � Zede ddfd�� � Zd� ZdS )�ClWposGetterz/usr/bin/clwpos-userz'/usr/sbin/clwpos_collect_information.pyr �domainr Nc �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�debugr �send�error)�selfr r"