403Webshell
Server IP : 162.144.4.212  /  Your IP : 216.73.216.108
Web Server : Apache
System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User : cozeellc ( 2980)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
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

'�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



Youez - 2016 - github.com/yon3zu
LinuXploit