AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /snap/core20/2599/usr/lib/python3/dist-packages/cloudinit/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /snap/core20/2599/usr/lib/python3/dist-packages/cloudinit/__pycache__/event.cpython-38.pyc
U

Ӈg�@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)�
EventScopeZnetworkcCs|jS�N��value��self�r�1/usr/lib/python3/dist-packages/cloudinit/event.py�__str__szEventScope.__str__N)�__name__�
__module__�__qualname__ZNETWORKr
rrrrrsrc@s(eZdZdZdZdZdZdZdd�ZdS)	�	EventTypezCEvent types which can generate maintenance requests for cloud-init.Zbootzboot-new-instancezboot-legacyZhotplugcCs|jSrrr	rrrr
"szEventType.__str__N)	rrr�__doc__ZBOOTZBOOT_NEW_INSTANCEZBOOT_LEGACYZHOTPLUGr
rrrrrsr)�user_config�returncCs�i}|��D]�\}}zt|�}Wn<tk
r\}zt�dt|�|�WY�qW5d}~XYnXzdd�|dD�}Wn8tk
r�}zt�dt|�|�g}W5d}~XYnXt|�||<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�xrrr�
<listcomp>=sz&userdata_to_events.<locals>.<listcomp>Zwhen)�itemsr�
ValueError�LOGZwarning�str�set)rZ
update_configZscopeZ
scope_listZ	new_scope�eZ
new_valuesrrr�userdata_to_events&s,��r)rZlogging�enumr�typingrrZ	getLoggerrrrr�dictrrrrr�<module>s



Anon7 - 2022
AnonSec Team