Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.11/site-packages/ansible/utils/__pycache__/ |
Upload File : |
� ���c� � � � d dl mZmZmZ eZd dlZd dlZd dlZd dl m Z d dlmZ d dl mZmZ d dlmZ e� � Z G d� de� � ZdS ) � )�absolute_import�division�print_functionN)�to_text)�ConnectionError)�binary_type� text_type)�Displayc �l � e Zd Z e� � Zd� Zd� Zd� Zdd�Zdd�Z dd�Z dd�Zdd �Zdd �Z dd�ZdS ) � JsonRpcServerc �: � t j t |d�� � � � }|� d� � }|� d� � s|� d� � r(| � � � }t j |� � S |� d� � \ }}t | d|� d� � � � d }| j D ]}t ||d � � }|r n�|s*| � � � }t j |� � }�n� ||i |��} t | t � � rd | v r| }n| � | � � } t j |� � }�n�# t $ ro} t � t# j � � � � | � t | d�� � � � � }t j |� � }Y d } ~ �n2d } ~ ww xY w# t( $ r�} t � t# j � � � � | � | j t | � � �� � }n3# t. $ r& | � t | � � � � � }Y nw xY wt j |� � }Y d } ~ n~d } ~ wt $ rn} t � t# j � � � � | � t | d�� � � � � }t j |� � }Y d } ~ nd } ~ ww xY wt1 | d� � |S )N�surrogate_then_replace)�errors�methodzrpc.�_�params�_identifier�id�jsonrpc)�data��code�message)�json�loadsr �get� startswith�invalid_request�dumps�setattr�_objects�getattr�method_not_found� isinstance�dict�response� Exception�display�vvv� traceback� format_exc�internal_errorr �errorr �AttributeError�delattr)�self�requestr r- �args�kwargs� rpc_method�objr&