shell bypass 403

Cubjrnet7 Shell


name : event.cpython-39.pyc
a

'�Dg�@srdZddlZddlmZddlmZmZe�e�Z	Gdd�de�Z
Gdd�de�Zeee
eefd	�d
d�Z
dS)z0Classes and functions related to event handling.�N)�Enum)�Dict�Setc@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r
rsrc@s(eZdZdZdZdZdZdZdd�ZdS)	�	EventTypezCEvent types which can generate maintenance requests for cloud-init.Zbootzboot-new-instancezboot-legacyZhotplugcCs|jSrrr
rrr
r"szEventType.__str__N)	rrr�__doc__ZBOOTZBOOT_NEW_INSTANCEZBOOT_LEGACYZHOTPLUGrrrrr
rs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 )rZlogging�enumr�typingrrZ	getLoggerrrrr�dictr rrrr
�<module>s



© 2025 Cubjrnet7