HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //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