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 : /lib/python3.11/site-packages/ansible/modules/__pycache__/ |
Upload File : |
� ���c�- � � � d dl mZmZmZ eZd dlZd dlZd dlZd dl Z d dl Z d dlZd dlZd dl Z d dlZd dlZd dlZd dlZd dlmZmZ ej d dk Z ej de j � e� � z � � ej ej dd� ej dd� � � z � � ej � � \ ZZ d a!d � Z"dd�Z#d� Z$d � Z%d� Z&d� Z'd� Z(d� Z)d� Z*e+dk r e*� � dS dS )� )�absolute_import�division�print_functionN)�to_text�to_bytes� z ansible-%szInvoked with %s� � � c �D � t j t j | � � d S �N)�syslog� LOG_NOTICE)�msgs �B/usr/lib/python3.11/site-packages/ansible/modules/async_wrapper.py�noticer $ s � � �M�&�#�S�)�)�)�)�)� c � � | �!t t j | � � � � t j � � � t j |� � d S r )�print�json�dumps�sys�stdout�flush�exit)�res�exit_msgs r �endr ( sG � � �� �d�j��o�o�����J�������H�X�����r c �� � t j � � } | dk rt � � nK# t $ r> t j � � d }t d|j |j fz dd�d� � Y nw xY wt j � � t j t dd� � � � t j � � } | dk rt � � nK# t $ r> t j � � d }t d|j |j fz dd�d� � Y nw xY wt d d � � }t j |� � � t j � � � � � t j |� � � t j � � � � � t j |� � � t j � � � � � d S )Nr r zfork #1 failed: %d (%s) T)r �failed�022� zfork #2 failed: %d (%s) z /dev/null�w)�os�forkr �OSErrorr �exc_info�errno�strerror�setsid�umask�int�open�dup2�fileno�stdinr �stderr)�pid�e�dev_nulls r �daemonize_selfr5 / s� � �]��g�i�i����7�7��E�E�E���� ]� ]� ]��L�N�N�1����/�1�7�A�J�2G�G�SW�X�X�Z[�\�\�\�\�\�]���� �I�K�K�K��H�S���]�]����]��g�i�i����7�7��E�E�E���� ]� ]� ]��L�N�N�1����/�1�7�A�J�2G�G�SW�X�X�Z[�\�\�\�\�\�]���� �K��%�%�H��G�H�O�O���s�y�/�/�1�1�2�2�2��G�H�O�O���s�z�0�0�2�2�3�3�3��G�H�O�O���s�z�0�0�2�2�3�3�3�3�3s# �'* �AA2�1A2�+'C �AD�Dc � � g }| � � � }t |� � D ]0\ }}|� � � }|� d� � r n�1t d� � �||d� }t t |� � � � D ].\ }}|� � � � d� � r n�/t d� � �|dk rE|t |� � |z d� }|� dd� |� � z � � |dt |� � |z � }d� |� � |fS ) a\ Used to filter unrelated output around module JSON output, like messages from tcagetattr, or where dropbear spews MOTD on every single command (which is nuts). Filters leading lines before first line-starting occurrence of '{', and filter all trailing lines after matching close character (working from the bottom of output). �{zNo start of json char foundN�}zNo end of json char foundr z2Module invocation had junk after the JSON data: %s� ) � splitlines� enumerate�strip� startswith� ValueError�reversed�endswith�len�append�join)�data�warnings�lines�start�line�reverse_end_offset� trailing_junks r �_filter_non_json_linesrK P s] � � �H� �O�O���E� ��'�'� 8� 8���t��z�z�|�|���?�?�4� � � ��E� � �6�7�7�7� �%�&�&�M�E�$-�h�u�o�o�$>�$>� 6� 6� ��D��:�:�<�<� � ��&�&� ��E� � �4�5�5�5��A��� �c�%�j�j�+=�=�>�>�?� ����L�t�y�y�Yf�Og�Og�g�h�h�h��4�C��J�J�!3�3�4�5�E��I�I�e���h�'�'r c �< � t | d� � 5 }|� d� � }|dd� dk r d d d � � d S |d|� d� � � � � � � d� � cd d d � � S # 1 swxY w Y d S )N�rbi r � s #!� � )r- �read�indexr<