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/vars/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.11/site-packages/ansible/vars/__pycache__/clean.cpython-311.opt-1.pyc
�

���c����ddlmZmZmZeZddlZddlZddlm	Z	m
Z
ddlmZ
ddlmZddlmZddlmZddlmZdd	lmZe��Zd
�Zdd�Zd�Zd
�Zd�ZdS)�)�absolute_import�division�print_functionN)�MutableMapping�MutableSequence)�	constants)�AnsibleError)�six)�to_text)�connection_loader)�Displayc�\�t|t��r)|���}tj|��}n1t|t
��r|dd�}t
|��}n|S|D]9\}}t|tt
f��rt|��||<�4|||<�:|S)a�Function to create a deep copy of module response data

    Designed to be used within the Ansible "engine" to improve performance
    issues where ``copy.deepcopy`` was used previously, largely with CPU
    and memory contention.

    This only supports the following data types, and was designed to only
    handle specific workloads:

    * ``dict``
    * ``list``

    The data we pass here will come from a serialization such
    as JSON, so we shouldn't have need for other data types such as
    ``set`` or ``tuple``.

    Take note that this function should not be used extensively as a
    replacement for ``deepcopy`` due to the naive way in which this
    handles other data types.

    Do not expect uses outside of those listed below to maintain
    backwards compatibility, in case we need to extend this function
    to handle our specific needs:

    * ``ansible.executor.task_result.TaskResult.clean_copy``
    * ``ansible.vars.clean.clean_facts``
    * ``ansible.vars.namespace_facts``
    N)�
isinstance�dict�copyr
�	iteritems�list�	enumerate�module_response_deepcopy)�v�ret�items�key�values     �7/usr/lib/python3.11/site-packages/ansible/vars/clean.pyrrs���:�!�T�����f�f�h�h���
�c�"�"���	�A�t�	�	������d���#����������
��U��e�d�D�\�*�*�	�/��6�6�C��H�H��C��H�H��J�c�H�|�t��}t|t��r3|D]/}t|ttf��rt	||����0n�t|t��r�t|�����D]r}t|tj��r|�	d��r||vr||=�9t||ttf��rt	|||����sntdt|��z���|S)N)�
exceptions�	_ansible_z!Cannot strip invalid keys from %s)�tuplerrr�strip_internal_keysr�keysr
�string_types�
startswithr	�type)�dirtyr�element�ks    rr!r!Fs9�����W�W�
��%��)�)�N��	D�	D�G��'�N�O�#D�E�E�
D�#�G�
�C�C�C�C��	D�
�E�>�	*�	*�N��e�j�j�l�l�#�#�	E�	E�A��!�S�-�.�.�
��<�<��,�,���*�1D�1D��a����%��(�^�_�$E�F�F�
E�#�E�!�H��D�D�D�D��	E��>��e���L�M�M�M��Lrc���t|�����D]T}|�d��r|dks|tjvr)t
�d|�d||����||=�UdD]}||vr||s||=�t|�di�������D]5}|�d��s|�d��r	|d|=�6d	S)
z5
    More nuanced version of strip_internal_keys
    r�_ansible_parsedz2Removed unexpected internal key in module return: z = )�warnings�deprecations�
ansible_facts�discovered_interpreter_�ansible_discovered_interpreter_N)rr"r$�C�INTERNAL_RESULT_KEYS�display�warning�get)�datars  r�remove_internal_keysr6cs ���D�I�I�K�K� � �����N�N�;�'�'�	�C�3D�,D�,D��PQ�Pf�If�If��O�O�O�[^�[^�[^�`d�eh�`i�`i�j�k�k�k��S�	��,�����$�;�;�t�C�y�;��S�	���D�H�H�_�b�1�1�6�6�8�8�9�9�+�+���>�>�3�4�4�	+����Gh�8i�8i�	+��_�%�c�*��+�+rc��t|��}t��}t|�����}tjD]:}|�|�tj|�����;|�|�tj����tj	d���D]�}tj�tj�
|����d}tjdtj|��z��}|D]V}|�|��r|�d��r|�d��r|�|���W��tjtjzD]}	|	|vr|�|	���tjd��}
|D],}|
�|��r|�|���-|D]7}|�d��s t.�d	|z��||=�8t3|��S)
zI remove facts that can override internal keys or otherwise deemed unsafe T)�	path_onlyrz^ansible_%s_)�_bridge�	_gwbridge�ansible_become_z^ansible_.*_interpreter$�ansible_ssh_host_key_z+Removed restricted key from module data: %s)r�setr"r0�MAGIC_VARIABLE_MAPPING�update�intersection�COMMON_CONNECTION_VARSr�all�os�path�splitext�basename�re�compile�escape�match�endswithr$�add�RESTRICTED_RESULT_KEYSr1r2r3r!)�factsr5�remove_keys�	fact_keys�	magic_var�	conn_path�	conn_name�re_key�fact_key�hard�	re_interp�r_keys            r�clean_factsrYwsH��#�E�*�*�D��%�%�K��D�I�I�K�K� � �I��-�X�X�	����9�1�1�!�2J�9�2U�V�V�W�W�W�W����y�-�-�a�.F�G�G�H�H�H�'�*�T�:�:�:�*�*�	��G�$�$�R�W�%5�%5�i�%@�%@�A�A�!�D�	���N�R�Y�y�-A�-A�A�B�B��!�	*�	*�H����X�&�&�
*�x�/@�/@�AY�/Z�/Z�
*�_g�_r�_r�tE�`F�`F�
*�����)�)�)��	*��(�1�+A�A�"�"���9����O�O�D�!�!�!���
�5�6�6�I��&�&���?�?�8�$�$�	&��O�O�H�%�%�%��������� 7�8�8�	��O�O�I�U�S�T�T�T��U����t�$�$�$rc��i}|D]T}|�d��r%|dvr!t||��||dd�<�<t||��||<�Ud|iS)z@ return all facts inside 'ansible_facts' w/o an ansible_ prefix �ansible_)�
ansible_local�Nr-)r$r)rN�
deprefixedr(s   r�namespace_factsr_�sx���J�
�?�?���<�<�
�#�#�	?��1C�(C�(C� 8��q�� B� B�J�q����u���4�U�1�X�>�>�J�q�M�M��Z�(�(r)N)�
__future__rrrr%�
__metaclass__rCrG�collections.abcrr�ansiblerr0�ansible.errorsr	�ansible.module_utilsr
�ansible.module_utils._textr�ansible.plugins.loaderr�ansible.utils.displayr
r2rr!r6rYr_�rr�<module>rjs(��
C�B�B�B�B�B�B�B�B�B��
�	�	�	�	�	�	�	�	�;�;�;�;�;�;�;�;�"�"�"�"�"�"�'�'�'�'�'�'�$�$�$�$�$�$�.�.�.�.�.�.�4�4�4�4�4�4�)�)�)�)�)�)�
�'�)�)��,�,�,�^����:+�+�+�((%�(%�(%�V	)�	)�	)�	)�	)r

Youez - 2016 - github.com/yon3zu
LinuXploit