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/playbook/role/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.11/site-packages/ansible/playbook/role/__pycache__/metadata.cpython-311.pyc
�

���c����ddlmZmZmZeZddlZddlmZm	Z	ddl
mZddlm
Z
ddlmZddlmZddlmZdd	lmZdd
lmZdgZGd�dee��ZdS)
�)�absolute_import�division�print_functionN)�AnsibleParserError�AnsibleError)�	to_native)�string_types)�FieldAttribute)�Base)�CollectionSearch)�load_list_of_roles)�RoleRequirement�RoleMetadatac���eZdZdZedd���Zede���Zed���Zede	���Z
d�fd
�	Zedd���Z
d�Zd
�Zd�Zd�Z�xZS)rzt
    This class wraps the parsing and validation of the optional metadata
    within each Role (meta/main.yml).
    �boolF)�isa�default�list�
GalaxyInfo)r�dictNc�d��||_tt|�����dS�N)�_owner�superr�__init__)�self�owner�	__class__s  ��C/usr/lib/python3.11/site-packages/ansible/playbook/role/metadata.pyrzRoleMetadata.__init__/s,������
�l�D�!�!�*�*�,�,�,�,�,�c���t|t��s$td|���z���t	|����|||���}|S)zY
        Returns a new RoleMetadata object based on the datastructure passed in.
        z3the 'meta/main.yml' for role %s is not a dictionary)r)�variable_manager�loader)�
isinstancerr�get_namer�	load_data)�datarr"r#�ms     r�loadzRoleMetadata.load3sd���$��%�%�	o�$�%Z�]b�]k�]k�]m�]m�%m�n�n�n��u�%�%�%�/�/��GW�`f�/�g�g���r c��
�g}|r�t|t��std|j����|D]�}t|t��sd|vsd|vr|�|���5	t
j|��}|�d��r|d|d<|�|����#t$r$}tt|��||����d}~wwxYwd}d}|jr�tj
�|jj��}|jjdd�pg}|jj�
�
r$�
fd�|D��}|�d�
��d	|vr|�d	��	t'||jj||j|j|�
��S#t.$r}	td|j|	����d}	~	wwxYw)z�
        This is a helper loading function for the dependencies list,
        which returns a list of RoleInclude objects
        z(Expected role dependencies to be a list.)�obj�role�name)r+�orig_excNc� ��g|]
}|�k�|��S�r0)�.0�c�owner_collections  �r�
<listcomp>z3RoleMetadata._load_dependencies.<locals>.<listcomp>ds$���)e�)e�)e��q�Td�Od�Od�!�Od�Od�Odr rzansible.legacy)�play�current_role_pathr"r#�collection_search_listz6A malformed list of role dependencies was encountered.)r$rr�_dsr	�appendr�role_yaml_parse�getrrr�os�path�dirname�
_role_path�collections�_role_collection�insertr
�_play�_variable_manager�_loader�AssertionError)r�attr�ds�roles�role_def�
def_parsed�excr6r7�er3s          @r�_load_dependencieszRoleMetadata._load_dependencies?sJ�����
�	Y��b�$�'�'�
c�(�)S�Y]�Ya�b�b�b�b��
Y�
Y���h��5�5���8�9K�9K�v�Ya�Oa�Oa��L�L��*�*�*��Y�!0�!@��!J�!J�J�!�~�~�f�-�-�>�+5�f�+=���(��L�L��*�*�*�*��#�Y�Y�Y�,�Y�s�^�^��TW�X�X�X�X�����Y����!��!%���;�
	@� "������0F� G� G��&*�[�%<�Q�Q�Q�%?�%E�2�"� $�{�;���
C�)e�)e�)e�)e�5K�)e�)e�)e�&�&�-�-�a�1A�B�B�B��'=�=�=�&�-�-�.>�?�?�?�	y�%�e�$�+�2C�Wh�7;�7M�VZ�Vb�=S�U�U�U�
U���	y�	y�	y�$�%]�cg�ck�vw�x�x�x�x�����	y���s1�)A	B3�3
C!�=C�C!�:(F#�#
G	�-G�G	c��|S)z�
        This is a helper loading function for the galaxy info entry
        in the metadata, which returns a GalaxyInfo object rather than
        a simple dictionary.
        r0)rrGrHs   r�_load_galaxy_infozRoleMetadata._load_galaxy_infoqs	���	r c�8�t|j|j���S)N)�allow_duplicates�dependencies)r�_allow_duplicates�
_dependencies)rs r�	serializezRoleMetadata.serializezs%���!�3��+�
�
�
�	
r c��t|d|�dd����t|d|�dg����dS)NrRFrS)�setattrr;)rr's  r�deserializezRoleMetadata.deserialize�sJ����(�$�(�(�3E�u�*M�*M�N�N�N���n�d�h�h�~�r�&B�&B�C�C�C�C�Cr r)NN)�__name__�
__module__�__qualname__�__doc__r
rRrrS�galaxy_infor�argument_specsr�staticmethodr)rNrPrVrY�
__classcell__)rs@rrr$s����������
&�~�&�%�@�@�@��!�>�f�d�;�;�;�L� �.�\�2�2�2�K�#�^���=�=�=�N�-�-�-�-�-�-��	�	�	��\�	�0y�0y�0y�d���
�
�
�D�D�D�D�D�D�Dr )�
__future__rrr�type�
__metaclass__r<�ansible.errorsrr�ansible.module_utils._textr�ansible.module_utils.sixr	�ansible.playbook.attributer
�ansible.playbook.baser�!ansible.playbook.collectionsearchr�ansible.playbook.helpersr
�!ansible.playbook.role.requirementr�__all__rr0r r�<module>rns��&C�B�B�B�B�B�B�B�B�B��
�	�	�	�	�;�;�;�;�;�;�;�;�0�0�0�0�0�0�1�1�1�1�1�1�5�5�5�5�5�5�&�&�&�&�&�&�>�>�>�>�>�>�7�7�7�7�7�7�=�=�=�=�=�=��
��^D�^D�^D�^D�^D�4�)�^D�^D�^D�^D�^Dr 

Youez - 2016 - github.com/yon3zu
LinuXploit