403Webshell
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/plugins/lookup/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.11/site-packages/ansible/plugins/lookup/__pycache__/__init__.cpython-311.pyc
�

���cf���ddlmZmZmZeZddlmZddlm	Z	ddl
mZddlm
Z
e
��ZdgZGd�de��ZdS)	�)�absolute_import�division�print_function)�abstractmethod)�AnsibleFileNotFound)�
AnsiblePlugin)�Display�
LookupBasec���eZdZd�fd�	Zd�Zed���Zed���Zed���Ze	dd���Z
d
d	�Zd
�Z�xZ
S)r
Nc���tt|�����||_||_t
|_dS�N)�superr
�__init__�_loader�_templar�display�_display)�self�loader�templar�kwargs�	__class__s    ��D/usr/lib/python3.11/site-packages/ansible/plugins/lookup/__init__.pyrzLookupBase.__init__#s:���
�j�$���(�(�*�*�*������
� ��
�
�
�c�L�d|vr|dS|j���S)N�	role_path)r�get_basedir)r�	variabless  rrzLookupBase.get_basedir-s,���)�#�#��[�)�)��<�+�+�-�-�-rc��g}|D]I}t|ttf��r|�|���4|�|���J|Sr
)�
isinstance�list�tuple�extend�append)�terms�ret�terms   r�_flattenzLookupBase._flatten3s[�����	!�	!�D��$��u�
�.�.�
!��
�
�4� � � � ��
�
�4� � � � ��
rc�|�g}|D]6}|D]1}|�t�||g�����2�7|Sr
)r$r
r()�a�b�results�x�ys     r�_combinezLookupBase._combine=sV�����	<�	<�A��
<�
<�����z�2�2�A�q�6�:�:�;�;�;�;�
<��rc�P�g}|D] }|�|||d����!|S)N)�key�value)r$)r%r&r1s   r�_flatten_hash_to_listz LookupBase._flatten_hash_to_listEs<�����	:�	:�C��J�J�s�U�3�Z�8�8�9�9�9�9��
rc��dS)a�
        When the playbook specifies a lookup, this method is run.  The
        arguments to the lookup become the arguments to this method.  One
        additional keyword argument named ``variables`` is added to the method
        call.  It contains the variables available to ansible at the time the
        lookup is templated.  For instance::

            "{{ lookup('url', 'https://toshio.fedorapeople.org/one.txt', validate_certs=True) }}"

        would end up calling the lookup plugin named url's run method like this::
            run(['https://toshio.fedorapeople.org/one.txt'], variables=available_variables, validate_certs=True)

        Lookup plugins can be used within playbooks for looping.  When this
        happens, the first argument is a list containing the terms.  Lookup
        plugins can also be called from within playbooks to return their
        values into a variable or parameter.  If the user passes a string in
        this case, it is converted into a list.

        Errors encountered during execution should be returned by raising
        AnsibleError() with a message describing the error.

        Any strings returned by this method that could ever contain non-ascii
        must be converted into python's unicode type as the strings will be run
        through jinja2 which has this requirement.  You can use::

            from ansible.module_utils._text import to_text
            result_string = to_text(result_string)
        N�)rr%rrs    r�runzLookupBase.runLs	��<	
�rFc���d|vr	|d}n|�|��g}d}	|j�|||��}n/#t$r"|s|j�d|z��YnwxYw|S)zL
        Return a file (needle) in the task's expected search path.
        �ansible_search_pathNz?Unable to find '%s' in expected paths (use -vvvvv to see paths))rr�path_dwim_relative_stackrr�warning)r�myvars�subdir�needle�ignore_missing�paths�results       r�find_file_in_search_pathz#LookupBase.find_file_in_search_pathls���
!�F�*�*��0�1�E�E��%�%�f�-�-�.�E���	r��\�:�:�5�&�&�Q�Q�F�F��"�	r�	r�	r�!�
r��
�%�%�&g�jp�&p�q�q�q���	r�����
s�A�)A0�/A0c��dSr
r5)rs r�_deprecate_inline_kvzLookupBase._deprecate_inline_kvs	��	
�r)NNr
)F)�__name__�
__module__�__qualname__rr�staticmethodr(r/r3rr6rArC�
__classcell__)rs@rr
r
!s�������� � � � � � �.�.�.�����\������\������\���
�
�
��^�
�>����&
�
�
�
�
�
�
rN)�
__future__rrr�type�
__metaclass__�abcr�ansible.errorsr�ansible.pluginsr�ansible.utils.displayr	r�__all__r
r5rr�<module>rQs���&C�B�B�B�B�B�B�B�B�B��
�������.�.�.�.�.�.�)�)�)�)�)�)�)�)�)�)�)�)�
�'�)�)���.��a
�a
�a
�a
�a
��a
�a
�a
�a
�a
r

Youez - 2016 - github.com/yon3zu
LinuXploit