Server IP : 85.193.89.191 / Your IP : 52.14.216.87 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python2.7/site-packages/ansible/plugins/httpapi/ |
Upload File : |
� � �\c @` s� d d l m Z m Z m Z e Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z y d d l m Z Wn* e k r� d d l m Z e � Z n Xd e f d � � YZ d � Z d d � Z d S( i ( t absolute_importt divisiont print_functionN( t to_text( t ConnectionError( t to_list( t HttpApiBase( t display( t Displayt HttpApic B` sD e Z d � Z d � Z e e d � Z e d � Z e e d � Z RS( c K` s4 t | � } | j rF t j d � | j d i d d 6| j d 6� n | j d d � } t | | � } i d d 6} | j j d | d | d d �\ } } y t j t | j � � � } Wn2 t k r� t d j t | j � � � � � n Xt | � } | j r| d } n t | � d k r0| d } n | S( Ns firing event: on_becomei t enablet cmdt inputt outputt texts application/json-rpcs Content-Types /command-apit headerst methodt POSTs$ Response was not valid JSON, got {0}i ( R t _becomeR t vvvvt insertt _become_passt gett request_buildert connectiont sendt jsont loadsR t getvaluet ValueErrorR t formatt handle_responset len( t selft datat message_kwargsR t requestR t responset response_datat results( ( s? /usr/lib/python2.7/site-packages/ansible/plugins/httpapi/eos.pyt send_request s&