%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3.9/site-packages/ansible/plugins/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3.9/site-packages/ansible/plugins/__pycache__/__init__.cpython-39.pyc

a

�)g��@s�ddlmZmZmZeZddlmZddlZddl	Z
ddlmZ
ddlmZddlmZddlmZddlmZe�Ze
jr�d	d
lmZiZiZiZdd�ZGd
d�de�ZGdd�de�ZdS)�)�absolute_import�division�print_function)�ABCN)�	constants)�AnsibleError)�	to_native)�string_types)�Display�)�PluginPathContextcCs2t|t�r|���dd�S|jj���dd�SdS�N�module�)�
isinstancer	�lower�replace�	__class__�__name__)�obj�r�</usr/lib/python3.9/site-packages/ansible/plugins/__init__.py�get_plugin_class.s
rc@sneZdZdZdd�Zdd�Zddd�Zdd	d
�Zdd�Zdd
d�Z	dd�Z
edd��Zedd��Z
dd�ZdS)�
AnsiblePluginFcCsi|_d|_dS�N)�_options�_defs��selfrrr�__init__:szAnsiblePlugin.__init__cCsbt�}|D]B}d|vr(|�d|���n|�d�rB|�|�d��|�|�q
t|�t|j���S)N�.zansible.builtin.zansible.legacy.)�set�add�
startswith�removeprefix�bool�intersectionZansible_aliases)rZpossible_namesZpossible_fqcns�namerrr�matches_name>s
zAnsiblePlugin.matches_nameNc
Csp||jvrdztjj||j|j|d�}Wn0tyV}ztt|���WYd}~n
d}~00|�	||�|j�
|�S)N)�plugin_typeZplugin_name�	variables)r�C�configZget_config_valuer)�
_load_namer�KeyErrorr�
set_option�get)r�option�hostvarsZoption_value�errr�
get_optionHs
"zAnsiblePlugin.get_optioncCs*i}|j��D]}|j||d�||<q|S)N)r2)�option_definitions�keysr4)rr2�optionsr1rrr�get_optionsQszAnsiblePlugin.get_optionscCs||j|<dSr)r)rr1�valuerrrr/WszAnsiblePlugin.set_optioncCsBtjj|j|j|||d�|_|jr>|r>d|vr>|�d|d�dS)a*
        Sets the _options attribute with the configuration/keyword information for this plugin

        :arg task_keys: Dict with playbook keywords that affect this option
        :arg var_options: Dict with either 'connection variables'
        :arg direct: Dict with 'direct assignment'
        )r6r*�directZ_extrasN)r+r,Zget_plugin_optionsr)r-r�allow_extrasr/)rZ	task_keysZvar_optionsr:rrr�set_optionsZszAnsiblePlugin.set_optionscCs|js|��||jvSr)rr<)rr1rrr�
has_optioniszAnsiblePlugin.has_optioncCs|jj���dd�Sr
�rrrrrrrrr)nszAnsiblePlugin.plugin_typecCs&|jdur tjj|j|jd�|_|jS)N)r)r')rr+r,Zget_configuration_definitionsr)r-rrrrr5rs
z AnsiblePlugin.option_definitionscCsdSrrrrrr�_check_requiredxszAnsiblePlugin._check_required)N)N)NNN)r�
__module__�__qualname__r;rr(r4r8r/r<r=�propertyr)r5r?rrrrr5s

	



rcsTeZdZ�fdd�Zedd��Zdd�ZeZZZ	Z
ZZedd��Z
�ZS)	�AnsibleJinja2Plugincstt|���||_dSr)�superrCr�	_function)r�function�rrrrszAnsibleJinja2Plugin.__init__cCs|jj���dd�S)NZ
ansiblejinja2rr>rrrrr)�szAnsibleJinja2Plugin.plugin_typecOs
t��dSr)�NotImplementedError)r�args�kwargsrrr�_no_options�szAnsibleJinja2Plugin._no_optionscCs|jSr)rErrrr�j2_function�szAnsibleJinja2Plugin.j2_function)rr@rArrBr)rKr=r4r8r5r/r<rL�
__classcell__rrrGrrC}s
rC) Z
__future__rrr�typeZ
__metaclass__�abcr�types�typing�tZansiblerr+Zansible.errorsrZansible.module_utils._textrZansible.module_utils.sixr	Zansible.utils.displayr
Zdisplay�
TYPE_CHECKING�loaderrZMODULE_CACHEZ
PATH_CACHEZPLUGIN_PATH_CACHErrrCrrrr�<module>s$H

Zerion Mini Shell 1.0