%PDF- %PDF-
Mini Shell

Mini Shell

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

a

�)gW�@s�ddlmZmZmZeZddlZddlmZ	ddl
mZddlm
Z
ddlmZddlmZddlmZdd	lmZdd
lmZe�Zdd�Zd
d�Zdd�ZdS)�)�absolute_import�division�print_functionN)�	constants)�AnsibleError)�Host)�to_bytes)�vars_loader)�AnsibleCollectionRef)�Display)�combine_varscCs�i}z|�|||�}Wn�ty�z:|D]0}t|t�rJ||�|j�O}q*||�|j�O}q*WnFty�t|d�r�td|j	|j
f��ntd|j	|j
f��Yn0Yn0|S)N�runz)Cannot use v1 type vars plugin %s from %szInvalid vars plugin %s from %s)Zget_vars�AttributeError�
isinstancerZ
get_host_vars�nameZget_group_vars�hasattrrZ
_load_nameZ_original_path)�loader�plugin�path�entities�dataZentity�r�8/usr/lib/python3.9/site-packages/ansible/vars/plugins.py�get_plugin_varss

 rc
Cs�i}tt���}tjD]4}t�|�rt�|�}|dur8q||vr|�|�q|D�]*}|j	�
d�pjd|j	v}	|	}
t|d�r�|j}
nt|d�r�t
jddd�|j}
|	s�t|d�s�t|d�r�t
�d|j	�n|	r�|
r�|�tj�s�qPt|d	�o�|�d
�}|�r|�d
�du�p|}|�rLtjdk�r2|dk�r2qPntjd
k�rh|dk�rhqPn|�rh|�d
�d|fv�rhqPt|t||||��}qP|S)Nzansible.builtin.�.�REQUIRES_ENABLED�REQUIRES_WHITELISTzaThe VarsModule class variable 'REQUIRES_WHITELIST' is deprecated. Use 'REQUIRES_ENABLED' instead.gq=
ףp@)�versionz�Vars plugins in collections must be enabled to be loaded, REQUIRES_ENABLED is not supported. This should be removed from the plugin %s.�
get_option�stageZdemandZ	inventory�startZtask�all)�listr	r!�CZVARIABLE_PLUGINS_ENABLEDr
Z
is_valid_fqcr�get�appendZansible_name�
startswithrr�displayZ
deprecatedrZwarningZmatches_nameZ
has_optionrZRUN_VARS_PLUGINSrr)
rrrrrZvars_plugin_listZplugin_nameZvars_pluginrZbuiltin_or_legacyZ
needs_enabledZ	has_stageZ
use_globalrrr�get_vars_from_path*sL





���r(cCsdi}|D]V}|durqd|vr.tj�|�s.qntj�t|��sJtj�|�}t|t||||��}q|S)N�,)�osr�exists�isdirr�dirnamerr()rZsourcesrrrrrrr�get_vars_from_inventory_sourcescsr.)Z
__future__rrr�typeZ
__metaclass__r*Zansiblerr#Zansible.errorsrZansible.inventory.hostrZansible.module_utils._textrZansible.plugins.loaderr	Zansible.utils.collection_loaderr
Zansible.utils.displayrZansible.utils.varsrr'rr(r.rrrr�<module>s9

Zerion Mini Shell 1.0