403Webshell
Server IP : 3.96.16.70  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3.9/site-packages/cloudinit/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.9/site-packages/cloudinit/__pycache__/event.cpython-39.pyc
a

�½b1�@svdZddlmZddlmZmZddlmZe�	e
�ZGdd�de�ZGdd�de�Z
eeeee
fd	�d
d�ZdS)
z0Classes and functions related to event handling.�)�Enum)�Dict�Set)�logc@seZdZdZdd�ZdS)�
EventScope�networkcCs|jS�N��value��self�r
�3/usr/lib/python3.9/site-packages/cloudinit/event.py�__str__szEventScope.__str__N)�__name__�
__module__�__qualname__ZNETWORKrr
r
r
rrsrc@s(eZdZdZdZdZdZdZdd�ZdS)	�	EventTypezCEvent types which can generate maintenance requests for cloud-init.Zbootzboot-new-instancezboot-legacyZhotplugcCs|jSrr	rr
r
rr#szEventType.__str__N)	rrr�__doc__ZBOOTZBOOT_NEW_INSTANCEZBOOT_LEGACYZHOTPLUGrr
r
r
rrsr)�user_config�returncCs�i}|��D]�\}}zt|�}WnBtyb}z*t�dt|�|�WYd}~qWYd}~n
d}~00zdd�|dD�}Wn:ty�}z"t�dt|�|�g}WYd}~n
d}~00t|�||<q|S)aConvert userdata into update config format defined on datasource.

    Userdata is in the form of (e.g):
    {'network': {'when': ['boot']}}

    DataSource config is in the form of:
    {EventScope.Network: {EventType.BOOT}}

    Take the first and return the second
    z.%s! Update data will be ignored for '%s' scopeNcSsg|]}t|��qSr
)r)�.0�xr
r
r�
<listcomp>>�z&userdata_to_events.<locals>.<listcomp>Zwhen)�itemsr�
ValueError�LOGZwarning�str�set)rZ
update_configZscopeZ
scope_listZ	new_scope�eZ
new_valuesr
r
r�userdata_to_events's,�"�r!N)r�enumr�typingrrZ	cloudinitrZloggingZ	getLoggerrrrr�dictr!r
r
r
r�<module>s



Youez - 2016 - github.com/yon3zu
LinuXploit