File manager - Edit - /usr/lib/python3.6/site-packages/cloudinit/config/__pycache__/cc_scripts_per_instance.cpython-36.pyc
Back
3 \�me< � @ s� U d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m Z mZ ddlm Z ddlmZ d Zd ddee geg g d �Ze ee�Z eje�ZdZeeeedd�dd�ZdS )z.Scripts Per Instance: Run per instance scripts� N)�subp)�Cloud)�Config)� MetaSchema�get_meta_doc)�ALL_DISTROS)�PER_INSTANCEa[ Any scripts in the ``scripts/per-instance`` directory on the datasource will be run when a new instance is first booted. Scripts will be run in alphabetical order. This module does not accept any config keys. Some cloud platforms change instance-id if a significant change was made to the system. As a result per-instance scripts will run again. Zcc_scripts_per_instancezScripts Per InstancezRun per instance scripts)�id�name�title�descriptionZdistrosZ frequencyZexamplesZactivate_by_schema_keyszper-instance)r �cfg�cloud�args�returnc C sN t jj|j� dt�}ytj|� W n& tk rH tj d| t|� � Y nX d S )N�scriptsz"Failed to run module %s (%s in %s)) �os�path�joinZ get_cpath� SCRIPT_SUBDIRr Zrunparts� Exception�LOGZwarning)r r r r Z runparts_path� r �-/usr/lib/python3.6/cc_scripts_per_instance.py�handle. s r )�__doc__Zloggingr Z cloudinitr Zcloudinit.cloudr Zcloudinit.configr Zcloudinit.config.schemar r Zcloudinit.distrosr Zcloudinit.settingsr ZMODULE_DESCRIPTION�metaZ getLogger�__name__r r �str�listr r r r r �<module> s*
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings