404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.128.206.191: ~ $
3

\�me��@sPddlZddlZddlmZmZmZddlmZeje	�Z
Gdd�dej�ZdS)�N)�handlers�subp�util)�
PER_ALWAYSc@s*eZdZdgZdd�Zdd�Zdd�ZdS)	�BootHookPartHandlerz#cloud-boothookcKs2tjj|t�|jd�|_d|_|r.|j�|_dS)NZ	boothooks)r�Handler�__init__rZ	get_ipath�boothook_dir�instance_idZget_instance_id)�self�pathsZ
datasourceZ_kwargs�r
�/usr/lib/python3.6/boot_hook.pyrs
zBootHookPartHandler.__init__cCsJtj|�}tjj|j|�}tjtj|�|jdd�}tj	||j
�d�|S)Nr)�prefixi�)rZclean_filename�os�path�joinr	Zstrip_prefix_suffixZdos2unix�prefixesZ
write_file�lstrip)r�payload�filename�filepath�contentsr
r
r�_write_part s
zBootHookPartHandler._write_partcCs�|tjkrdS|j||�}yBtjj�}|jdk	r>t|j�|d<tj	d�t
j
|g|dd�WnDt
jk
r�tj
td|�Yn"tk
r�tj
td|�YnXdS)NZINSTANCE_IDzExecuting boothookF)�envZcapturez#Boothooks script %s execution errorz'Boothooks unknown error when running %s)rZCONTENT_SIGNALSrr�environ�copyr
�str�LOG�debugrZProcessExecutionErrorrZlogexc�	Exception)r�dataZctyperrZ	frequencyrrr
r
r�handle_part)s



zBootHookPartHandler.handle_partN)�__name__�
__module__�__qualname__rrrr"r
r
r
rrs	r)
ZloggingrZ	cloudinitrrrZcloudinit.settingsrZ	getLoggerr#rrrr
r
r
r�<module>s



Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 6.43 KB 0644
__init__.cpython-36.pyc File 6.43 KB 0644
boot_hook.cpython-36.opt-1.pyc File 1.74 KB 0644
boot_hook.cpython-36.pyc File 1.74 KB 0644
cloud_config.cpython-36.opt-1.pyc File 3.73 KB 0644
cloud_config.cpython-36.pyc File 3.73 KB 0644
jinja_template.cpython-36.opt-1.pyc File 6.19 KB 0644
jinja_template.cpython-36.pyc File 6.19 KB 0644
shell_script.cpython-36.opt-1.pyc File 1.03 KB 0644
shell_script.cpython-36.pyc File 1.03 KB 0644
shell_script_by_frequency.cpython-36.opt-1.pyc File 2.13 KB 0644
shell_script_by_frequency.cpython-36.pyc File 2.13 KB 0644