403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.216.55
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.7
System : Linux ip-172-31-69-123.ec2.internal 6.1.177-224.371.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 20:28:29 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.9/site-packages/cloudinit/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/cloudinit/__pycache__/event.cpython-39.opt-1.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