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: //usr/lib/python3.9/site-packages/ansible/plugins/inventory/__pycache__/auto.cpython-39.pyc
a

�)g�	�@sXddlmZmZmZeZdZdZddlm	Z	ddl
mZddlm
Z
Gdd�de�Zd	S)
�)�absolute_import�division�print_functiona[
    name: auto
    author:
      - Matt Davis (@nitzmahone)
    version_added: "2.5"
    short_description: Loads and executes an inventory plugin specified in a YAML config
    description:
        - By enabling the C(auto) inventory plugin, any YAML inventory config file with a
          C(plugin) key at its root will automatically cause the named plugin to be loaded and executed with that
          config. This effectively provides automatic enabling of all installed/accessible inventory plugins.
        - To disable this behavior, remove C(auto) from the C(INVENTORY_ENABLED) config element.
z�
# This plugin is not intended for direct use; it is a fallback mechanism for automatic enabling of
# all installed inventory plugins.
)�AnsibleParserError)�BaseInventoryPlugin)�inventory_loadercs*eZdZdZ�fdd�Zddd�Z�ZS)�InventoryModule�autocs(|�d�s|�d�sdStt|��|�S)Nz.ymlz.yamlF)�endswith�superr�verify_file)�self�path��	__class__��B/usr/lib/python3.9/site-packages/ansible/plugins/inventory/auto.pyr"szInventoryModule.verify_fileTcCs�|j|dd�}z|�dd�}Wnty4d}Yn0|sHtd�|���t�|�}|sftd�||���|�|�s�td�||���|j�d�|j	|��|j
||||d�z|��Wnty�Yn0dS)NF)�cache�pluginzRno root 'plugin' key found, '{0}' is not a valid YAML inventory plugin config filez5inventory config '{0}' specifies unknown plugin '{1}'zFinventory source '{0}' could not be verified by inventory plugin '{1}'z>Using inventory plugin '{0}' to process inventory source '{1}')Zload_from_file�get�AttributeErrorr�formatrrZdisplay�vZ
_load_name�parseZupdate_cache_if_changed)r
Z	inventory�loaderrrZconfig_dataZplugin_namerrrrr's$


zInventoryModule.parse)T)�__name__�
__module__�__qualname__�NAMErr�
__classcell__rrrrrsrN)Z
__future__rrr�typeZ
__metaclass__Z
DOCUMENTATIONZEXAMPLESZansible.errorsrZansible.plugins.inventoryrZansible.plugins.loaderrrrrrr�<module>s