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/module_utils/common/__pycache__/ |
Upload File : |
� ���c_� � � � d dl mZmZmZ eZd dlZd dlZd dlm Z d dl mZ d dlm Z d dlmZmZmZ d dlmZ d dlmZ d d lmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$ d d l%m&Z&m'Z' d dl(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/ d dl0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6 d d l7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZDmEZEmFZFmGZGmHZH ed� � ZIe:de#d�e;de"d�e<de!d�e=ded�fZJddddddddg d�fddddd d!d"d#�ZKd$ZLeHeEeAe?eCeBeFeGeDeDe@e>d%�ZMd&� ZNd:d'�ZOd;d(�ZPd<d)�ZQd=d+�ZRd,� ZSd-� ZTd.� ZUd>d0�ZVd1� ZWd<d2�ZXd?d3�ZYd<d4�ZZ d@d5�Z[d6� Z\d7� Z] e^� � fd8�Z_d9� Z`dS )A� )�absolute_import�division�print_functionN)�deque)�chain)�is_iterable)�to_bytes� to_native�to_text)�lenient_lowercase)�warn)� AliasError�AnsibleFallbackNotFound�AnsibleValidationErrorMultiple�ArgumentTypeError�ArgumentValueError�ElementError�MutuallyExclusiveError� NoLogError�RequiredByError� RequiredError�RequiredIfError�RequiredOneOfError�RequiredTogetherError�SubParameterTypeError)�BOOLEANS_FALSE� BOOLEANS_TRUE)�KeysView�Set�Sequence�Mapping�MutableMapping� MutableSet�MutableSequence)�binary_type� integer_types�string_types� text_type�PY2�PY3)�check_mutually_exclusive�check_required_arguments�check_required_together�check_required_one_of�check_required_if�check_required_by�check_type_bits�check_type_bool�check_type_bytes�check_type_dict�check_type_float�check_type_int�check_type_jsonarg�check_type_list�check_type_path�check_type_raw�check_type_str�required_together)�func�attr�err�required_one_of�required_if�required_by)� check_modeF)�_debugF)�_diffF)�_keep_remote_filesF)�_nameN)�no_logF)�_remote_tmpN�_selinux_special_fs)�fuse�nfs�vboxsf�ramfs�9p�vfat)�_shellz/bin/sh)�_socket_pathN)�_string_conversion_actionr )�_syslog_facility�INFO)�_tmpdirN)� _verbosityr )�ansible_versionz0.0)rC �debug�diff�keep_remote_files�module_namerH � remote_tmp�selinux_special_fs�shell_executable�socket�string_conversion_action�syslog_facility�tmpdir� verbosity�version)rC rY rZ r[ rH )�str�list�dict�bool�int�float�path�raw�jsonarg�json�bytes�bitsc � � t | � � s| �d} t � | � � }n-| }t | dt t | � � � � � � } || fS )a� Returns the callable used to validate a wanted type and the type name. :arg wanted: String or callable. If a string, get the corresponding validation function from DEFAULT_TYPE_VALIDATORS. If callable, get the name of the custom callable and return that for the type_checker. :returns: Tuple of callable function or None, and a string that is the name of the wanted type. Nrf �__name__)�callable�DEFAULT_TYPE_VALIDATORS�get�getattrr �type)�wanted�type_checkers �K/usr/lib/python3.11/site-packages/ansible/module_utils/common/parameters.py�_get_type_validatorr| { se � � �F��� F��>��F�.�2�2�6�:�:��� �����Y�t�F�|�|�-D�-D�E�E������ c � � |�t | |� � }t |� � � � � t | � � � � � z S �N)�_handle_aliasesrg �keys)� argument_spec� parameters�aliasess r{ �_get_legal_inputsr� � sE � ���!�-��<�<����������$�}�'9�'9�';�';�"<�"<�<�<r} c �l � |�t | |� � }t � � }|� � � D ]~}||vrx|}|rt ||gz � � }|� |� � |�Jt | |� � }g } |D ]} | |v r�| � | � � �|� || |fi� � �|S )a� Check keys in parameters against those provided in legal_inputs to ensure they contain legal values. If legal_inputs are not supplied, they will be generated using the argument_spec. :arg argument_spec: Dictionary of parameters, their type, and valid values. :arg parameters: Dictionary of parameters. :arg legal_inputs: List of valid key names property names. Overrides values in argument_spec. :arg options_context: List of parent keys for tracking the context of where a parameter is defined. :returns: Set of unsupported parameters. Empty set if no unsupported parameters are found. )r� �setr� �tuple�addr� �append�update)r� r� �legal_inputs�options_context�store_supported�unsupported_parameters�k�context�supported_aliases�supported_params�options r{ �_get_unsupported_parametersr� � s� � � ��(�� �C�C�� �U�U�� �_�_� � � Y� Y���L� � ��G�� 7���1�#� 5�6�6��"�&�&�w�/�/�/��*�$3�M�:�$N�$N�!�#%� �*� 4� 4�F��!2�2�2� �$�+�+�F�3�3�3�3��&�&��2B�DU�1V�'W�X�X�X��!�!r} c �r � i }| � � � D �]\ }}|� dd� � }|� dd� � }|� dd� � } |�K| | � dg � � D ].} | � d� � |v r|� | � � �/|�| rt d|z � � �|���t |� � rt |t t f� � rt d � � �|D ]3} ||| <