Your IP : 216.73.217.13


Current Path : /lib/python3/dist-packages/cloudinit/config/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/cloudinit/config/__pycache__/cc_scripts_user.cpython-38.pyc

U

�Ady�	@s�UdZddlZddlmZddlmZddlmZddlm	Z	ddl
mZmZddl
mZdd	lmZd
Zddd
eegeggd�Zeed<ee�ZdZee	eeedd�dd�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.
Zcc_scripts_userzScripts UserzRun user scripts)�id�name�titleZdescriptionZdistrosZ	frequencyZexamplesZactivate_by_schema_keys�metaZscripts)r�cfg�cloud�log�args�returnc	CsLtj�|��t�}zt�|�Wn&tk
rF|�d|t|��YnXdS)Nz"Failed to run module %s (%s in %s))	�os�path�joinZ
get_ipath_cur�
SCRIPT_SUBDIRrZrunparts�	ExceptionZwarning)rrrrrZ
runparts_path�r�B/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py�handle.s�r)�__doc__rZloggingrZ	cloudinitrZcloudinit.cloudrZcloudinit.configrZcloudinit.config.schemarrZcloudinit.distrosrZcloudinit.settingsr	ZMODULE_DESCRIPTIONr
�__annotations__r�str�listrrrrr�<module>s6
��