%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/cloudinit/mergers/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/cloudinit/mergers/__pycache__/__init__.cpython-312.pyc

�

�f����ddlZddlmZmZejd�ZdZdZdZGd�d�Z	Gd	�d
e	�Z
d�Zd�Zd
�Z
d�Zy)�N)�importer�
type_utilsz#(^[a-zA-Z_][A-Za-z0-9_]*)\((.*?)\)$zlist()+dict()+str()�m_�Mergerc��eZdZd�Zd�Zy)�
UnknownMergerc��|S�N�)�self�_meth_wanted�value�_merge_withs    �</usr/lib/python3/dist-packages/cloudinit/mergers/__init__.py�_handle_unknownzUnknownMerger._handle_unknowns����c���tj|�}|j�}d|z}d}||g}t||�rt	||�}|s|j
}|j
d|�||�S)Nz_on_%sr)r�obj_name�lower�hasattr�getattrr�insert)r�source�
merge_with�	type_name�method_name�meth�argss       r�mergezUnknownMerger.merge ss���'�'��/�	��O�O�%�	��)�,�����
�#���4��%��4��-�D���'�'�D��K�K��;�'��T�{�rN)�__name__�
__module__�__qualname__rrrrrrrs���rrc� �eZdZdd�Zd�Zd�Zy)�LookupMergerNc�P�tj|�|�g|_y||_yr
)r�__init__�_lookups)r�lookupss  rr&zLookupMerger.__init__/s#�����t�$��?��D�M�#�D�Mrc�2�dt|j�zS)NzLookupMerger: (%s))�lenr')rs r�__str__zLookupMerger.__str__6s��#�s�4�=�=�'9�:�:rc��d}|jD]}t||�s�t||�}n|stj	||||�S|||�Sr
)r'rrrr)r�meth_wantedrrr�mergers      rrzLookupMerger._handle_unknown>se�����m�m�	�F��v�{�+��v�{�3���	�� �0�0��k�5�*��
��E�:�&�&rr
)r r!r"r&r+rrrrr$r$.s��$�;�'rr$c�z�g}|jdd�}|�|jdd�}|�|St|t�rt|�S|D]n}t|t�r+|d}|jdd�j
�}|d}n|d}t|�dk\r|d	d}ng}|s�\|j||f��p|S)
N�	merge_how�
merge_type�name�-�_�settingsr��)	�pop�
isinstance�str�string_extract_mergers�dict�replace�stripr*�append)�config�parsed_mergers�raw_mergers�mr2�optss      r�dict_extract_mergersrEMs����N��*�*�[�$�/�K����j�j��t�4�������+�s�#�%�k�2�2�
�0���a�$� ��V�9�D��<�<��S�)�/�/�1�D��Z�=�D��Q�4�D��1�v��{����u������!�!�4��,�/�0��rc��g}|jd�D]�}|j�j�}|jdd�}|s�6tj|�}|sd|z}t
|��|j�\}}|j�jd�}|D�cgc]1}|j�s�|j�j���3}}|j||f���|Scc}w)N�+r3r4z2Matcher identifier '%s' is not in the right format�,)	�splitrr>r=�	NAME_MTCH�match�
ValueError�groupsr?)r0rA�m_namerK�msg�m_opsrCs       rr;r;fs����N��/�/�#�&�/������%�%�'������S�)��������'���F���C��S�/�!��,�,�.�������
�#�#�C�(��,1�?�q�Q�W�W�Y�������"�?��?����v�u�o�.�!/�"���@s�'C6�= C6c�2�ttt��Sr
)�tupler;�DEF_MERGE_TYPErrr�default_mergersrT|s���'��7�8�8rc���g}|D]�\}}|jt�stt|�z}tj|t
gtg�\}}|sd|�dt�d|�d�}t|��tj|d�}t|t�}|j||f���g}	t|	�}
|D]\}}|	j||
|���|
S)Nz$Could not find merger module named 'z' with attribute 'z' (searched �)r)�
startswith�
MERGER_PREFIXr:r�find_moduler �MERGER_ATTR�ImportError�
import_modulerr?r$)
rA�
mergers_to_berNrP�merger_locs�looked_locsrO�mod�mod_attr�mergers�root�attrrDs
             r�	constructre�s����M�)�4����� � ��/�"�S��[�0�F�#+�#7�#7��X�J��
�$
� ��[���;��5�
�
�c�"�"��(�(��Q��8�C��s�K�0�H�� � �(�E�!2�3�!4�$�G��� �D�%�)���t����t�D�$�'�(�)��Kr)�re�	cloudinitrr�compilerJrSrXrZrr$rEr;rTrerrr�<module>risW��
�*��B�J�J�=�>�	�&���
�����8'�=�'�>�2�,9�r

Zerion Mini Shell 1.0