https://t.me/RX1948
Server : LiteSpeed
System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : idnco5810 ( 1093)
PHP Version : 8.2.29
Disable Function : NONE
Directory :  /usr/lib/python3/dist-packages/cloudinit/handlers/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib/python3/dist-packages/cloudinit/handlers/__pycache__/boot_hook.cpython-310.pyc
o

쑛h��@sPddlZddlZddlmZmZmZddlmZe�e	�Z
Gdd�dej�ZdS)�N)�handlers�subp�util)�
PER_ALWAYSc@s*eZdZdgZdd�Zdd�Zdd�ZdS)	�BootHookPartHandlerz#cloud-boothookcKs6tj�|t�|�d�|_d|_|r|��|_dSdS)N�	boothooks)r�Handler�__init__r�	get_ipath�boothook_dir�instance_id�get_instance_id)�self�paths�
datasource�_kwargs�r�>/usr/lib/python3/dist-packages/cloudinit/handlers/boot_hook.pyr	s�zBootHookPartHandler.__init__cCsJt�|�}tj�|j|�}tjt�|�|jdd�}t�	||�
�d�|S)Nr)�prefixi�)r�clean_filename�os�path�joinr�strip_prefix_suffix�dos2unix�prefixes�
write_file�lstrip)r�payload�filename�filepath�contentsrrr�_write_part s
�zBootHookPartHandler._write_partcCs�|tjvrdS|�||�}z|jrdt|j�ini}t�d�tj|g|dd�WdStjy<t	�
td|�YdStyLt	�
td|�YdSw)N�INSTANCE_IDzExecuting boothookF)�
update_env�capturez#Boothooks script %s execution errorz'Boothooks unknown error when running %s)r�CONTENT_SIGNALSr"r�str�LOG�debugr�ProcessExecutionErrorr�logexc�	Exception)r�data�ctyperr�	frequencyr �envrrr�handle_part)s"
��

��zBootHookPartHandler.handle_partN)�__name__�
__module__�__qualname__rr	r"r1rrrrrs
	r)
�loggingr�	cloudinitrrr�cloudinit.settingsr�	getLoggerr2r(rrrrrr�<module>s



https://t.me/RX1948 - 2025