HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /lib/python3/dist-packages/cloudinit/config/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/cloudinit/config/__pycache__/cc_scripts_user.cpython-311.pyc
�

܍~cy����UdZddlZddlmZddlmZddlmZddlm	Z	ddl
mZmZddl
mZdd	lmZd
Zddd
eegeggd�Zeed<ee��ZdZdede	dedededdfd�ZdS)zScripts User: Run user scripts�N)�Logger)�subp)�Cloud)�Config)�
MetaSchema�get_meta_doc)�ALL_DISTROS)�PER_INSTANCEa�This module runs all user scripts. User scripts are not specified in the
``scripts`` directory in the datasource, but rather are present in the
``scripts`` dir in the instance configuration. Any cloud-config parts with a
``#!`` will be treated as a script and run. Scripts specified as cloud-config
parts will be run in the order they are specified in the configuration.
This module does not accept any config keys.
�cc_scripts_userzScripts UserzRun user scripts)�id�name�title�description�distros�	frequency�examples�activate_by_schema_keys�meta�scriptsr
�cfg�cloud�log�args�returnc��tj�|���t��}	tj|��dS#t$r|�d|t|���wxYw)Nz"Failed to run module %s (%s in %s))	�os�path�join�
get_ipath_cur�
SCRIPT_SUBDIRr�runparts�	Exception�warning)r
rrrr�
runparts_paths      �B/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py�handler&.s����G�L�L��!4�!4�!6�!6�
�F�F�M�	��
�m�$�$�$�$�$���������0����		
�	
�	
�	����s�A�)A8)�__doc__r�loggingr�	cloudinitr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemarr�cloudinit.distrosr	�cloudinit.settingsr
�MODULE_DESCRIPTIONr�__annotations__r �str�listr&��r%�<module>r5sD��%�$�$�	�	�	�	�������������!�!�!�!�!�!�#�#�#�#�#�#�<�<�<�<�<�<�<�<�)�)�)�)�)�)�+�+�+�+�+�+�����
�%��}���!�	�	��j�	�	�	��,�t�
�
���
��

����#(��/5��=A��	������r4