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__/together.cpython-311.pyc
�

���cs��r�ddlmZmZmZeZdZdZdZddl	Z	ddl
mZddlm
Z
ddlmZGd	�d
e
��ZdS)�)�absolute_import�division�print_functionaT
    name: together
    author:  Bradley Young (!UNKNOWN) <young.bradley@gmail.com>
    version_added: '1.3'
    short_description: merges lists into synchronized list
    description:
      - Creates a list with the iterated elements of the supplied lists
      - "To clarify with an example, [ 'a', 'b' ] and [ 1, 2 ] turn into [ ('a',1), ('b', 2) ]"
      - This is basically the same as the 'zip_longest' filter and Python function
      - Any 'unbalanced' elements will be substituted with 'None'
    options:
      _terms:
        description: list of lists to merge
        required: True
z�
- name: item.0 returns from the 'a' list, item.1 returns from the '1' list
  ansible.builtin.debug:
    msg: "{{ item.0 }} and {{ item.1 }}"
  with_together:
    - ['a', 'b', 'c', 'd']
    - [1, 2, 3, 4]
zO
  _list:
    description: synchronized list
    type: list
    elements: list
N)�AnsibleError)�
LookupBase)�listify_lookup_plugin_termsc� �eZdZdZd�Zdd�ZdS)�LookupModulez�
    Transpose a list of arrays:
    [1, 2, 3], [4, 5, 6] -> [1, 4], [2, 5], [3, 6]
    Replace any empty spots in 2nd array with None:
    [1, 2], [3] -> [1, 3], [2, None]
    c�j�g}|D]-}t||j���}|�|���.|S)N)�templar)r�_templar�append)�self�terms�results�x�intermediates     �D/usr/lib/python3.11/site-packages/ansible/plugins/lookup/together.py�_lookup_variableszLookupModule._lookup_variables5sD�����	)�	)�A�6�q�$�-�P�P�P�L��N�N�<�(�(�(�(���Nc�����|��}|dd�}t|��dkrtd����fd�tj|ddi�D��S)Nrz8with_together requires at least one element in each listc�:��g|]}��|����S�)�_flatten)�.0rrs  �r�
<listcomp>z$LookupModule.run.<locals>.<listcomp>Ds%���Z�Z�Z�Q��
�
�a� � �Z�Z�Zr�	fillvalue)r�lenr�	itertools�zip_longest)rr�	variables�kwargs�my_lists`    r�runzLookupModule.run<sn����&�&�u�-�-������(���w�<�<�1����Y�Z�Z�Z�Z�Z�Z�Z�)�*?��*Y�TX�*Y�*Y�Z�Z�Z�Zr)N)�__name__�
__module__�__qualname__�__doc__rr$rrrr
r
-sG�����������[�[�[�[�[�[rr
)�
__future__rrr�type�
__metaclass__�
DOCUMENTATION�EXAMPLES�RETURNr�ansible.errorsr�ansible.plugins.lookupr�ansible.utils.listifyrr
rrr�<module>r2s���C�B�B�B�B�B�B�B�B�B��
��
� ��
������'�'�'�'�'�'�-�-�-�-�-�-�=�=�=�=�=�=�[�[�[�[�[�:�[�[�[�[�[r

Youez - 2016 - github.com/yon3zu
LinuXploit