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/cli/__pycache__/ |
Upload File : |
� ���c�� � �D � d dl mZmZmZ eZd dlmZ d dlZd dl Z d dl Z d dlZd dlZd dl Z d dlmc mZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d d lmZmZm Z m!Z! d d l"m#Z#m$Z$ d dl%m&Z& d dl'm(Z( d d l)m*Z* d dl+m,Z, d dl-m.Z. d dl/m0Z0 d dl1m2Z2 d dl3m4Z4 d dl5m6Z6 d dlm7Z7m8Z8 d dl9m:Z:m;Z; d dl<m=Z= d dl>m?Z? d dl@mAZAmBZBmCZC e?� � ZDejE dz ZFg d�ZGi ZHg d�ZId&d�ZJd� ZK G d� deL� � ZM G d � d!eeM� � ZNd"� ZOd#� ZPd&d$�ZQeRd%k r eQ� � dS dS )'� )�absolute_import�division�print_function)�CLIN)�Path)� constants)�context)�option_helpers)�list_collection_dirs)�AnsibleError�AnsibleOptionsError�AnsibleParserError�AnsiblePluginNotFound)� to_native�to_text)�is_sequence)� json_dump)� yaml_dump)� importlib)�string_types)�read_docstub)� from_yaml)� AnsibleDumper)�list_plugins)� action_loader�fragment_loader)�AnsibleCollectionConfig�AnsibleCollectionRef)�_get_collection_name_from_path)�Display)�get_plugin_docs� get_docstring�get_versioned_doclink)�role�keyword)�Play�Role�Block�Task)� inventory�lookup�modulec � � t � dd�� � | � t ||� � � � d S )NzJadd_collection_plugins method, use ansible.plugins.list functions instead.�2.17��version)�display� deprecated�updater )�plugin_list�plugin_type�coll_filters �4/usr/lib/python3.11/site-packages/ansible/cli/doc.py�add_collection_pluginsr8 6 sA � ����c�ms��t�t�t����|�K��=�=�>�>�>�>�>� c � � t � t | � � � � d S # t $ rO}t � t j � � � � t dt |� � z � � �d }~ww xY w)NzXWe could not convert all the documentation into JSON as there was a conversion issue: %s)r1 r � TypeError�vvv� traceback� format_excr r )�text�es r7 �jdumprA ; s� � �F���� �$���(�(�(�(�(��� F� F� F����I�(�*�*�+�+�+��u� yB� CD� yE� yE� E� F� F� F�����F���s �'+ � B�A A?�?Bc � � e Zd ZdZd� ej D � � d� ej D � � z Zd d�Zdd�Zd d�Z d� Z d � Zdd�Zdd�Z dS )� RoleMixinz�A mixin containing all methods relevant to role argument specification functionality. Note: The methods for actual display of role data are not present here. c � � g | ]}d |z ��S )�argument_specs� ��.0r@ s r7 � <listcomp>zRoleMixin.<listcomp>K s � �S�S�S�1�*�Q�.�S�S�Sr9 c � � g | ]}d |z ��S )�mainrF rG s r7 rI zRoleMixin.<listcomp>K s8 � � WG� WG� WG�fg�W]�`a�Wa� WG� WG� WGr9 Nc � � |r#t j � |d|d� � }n5|r!t j � |d� � }nt d|z � � �d}| j D ]E}t j � ||� � }t j � |� � r|} n�F|�i S t |d� � 5 }t |� � � |�� � } | �i } | � di � � cddd� � S # 1 swxY w Y dS # t t f$ r)} t d|�d t | � � ��| � � � �d} ~ ww xY w)aC Load the role argument spec data from the source file. :param str role_name: The name of the role for which we want the argspec data. :param str collection_path: Path to the collection containing the role. This will be None for standard roles. :param str role_path: Path to the standard role. This will be None for collection roles. We support two files containing the role arg spec data: either meta/main.yml or meta/argument_spec.yml. The argument_spec.yml file will take precedence over the meta/main.yml file, if it exists. Data is NOT combined between the two files. :returns: A dict of all data underneath the ``argument_specs`` top-level YAML key in the argspec data file. Empty dict is returned if there is no data. �roles�metaz7A path is required to load argument specs for role '%s'N�r)� file_namerE z1An error occurred while trying to read the file 'z': ��orig_exc)�os�path�joinr �ROLE_ARGSPEC_FILES�exists�openr �read�get�IOError�OSErrorr r )�self� role_name�collection_path� role_path� meta_pathrT �specfile� full_path�f�datar@ s r7 � _load_argspeczRoleMixin._load_argspecM s� � �$ � f�����_�g�y�&�Q�Q�I�I� � f�����Y��7�7�I�I��X�[d�d�e�e�e��� �/� � �H�����Y��9�9�I��w�~�~�i�(�(� � ���� � �<��I� D��d�C��� 6�A� ������T�:�:�:���<��D��x�x� 0�"�5�5� 6� 6� 6� 6� 6� 6� 6� 6� 6� 6� 6� 6���� 6� 6� 6� 6� 6� 6�� ��!� D� D� D�$�$�cg�cg�cg�ir�st�iu�iu�iu�%v� BC� D� D� D� D����� D���s<