403Webshell
Server IP : 43.141.49.119  /  Your IP : 113.219.202.141
Web Server : Apache
System : Linux VM-8-5-opencloudos 6.6.34-9.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 19 19:35:45 CST 2024 x86_64
User : www ( 1000)
PHP Version : 8.1.27
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.11/site-packages/cloudinit/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.11/site-packages/cloudinit/__pycache__/event.cpython-311.pyc
�

hg�d1���dZddlmZddlmZmZddlmZej	e
��ZGd�de��ZGd�de��Z
d	ed
eeee
ffd�ZdS)
z0Classes and functions related to event handling.�)�Enum)�Dict�Set)�logc��eZdZdZd�ZdS)�
EventScope�networkc��|jS�N��value��selfs �4/usr/lib/python3.11/site-packages/cloudinit/event.py�__str__zEventScope.__str__�
���z��N)�__name__�
__module__�__qualname__�NETWORKr�rrrrs*�������G�����rrc�(�eZdZdZdZdZdZdZd�ZdS)�	EventTypezCEvent types which can generate maintenance requests for cloud-init.�bootzboot-new-instancezboot-legacy�hotplugc��|jSrrrs rrzEventType.__str__#rrN)	rrr�__doc__�BOOT�BOOT_NEW_INSTANCE�BOOT_LEGACY�HOTPLUGrrrrrrs@������M�M��D�+���K��G�����rr�user_config�returnc��i}|���D]�\}}	t|��}n@#t$r3}t�dt|��|��Yd}~�Nd}~wwxYw	d�|dD��}nB#t$r5}t�dt|��|��g}Yd}~nd}~wwxYwt
|��||<��|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' scopeNc�,�g|]}t|����Sr)r)�.0�xs  r�
<listcomp>z&userdata_to_events.<locals>.<listcomp>>s��C�C�C�1�)�A�,�,�C�C�Cr�when)�itemsr�
ValueError�LOG�warning�str�set)r#�
update_config�scope�
scope_list�	new_scope�e�
new_valuess       r�userdata_to_eventsr7's���M�(�.�.�0�0�3�3���z�	�"�5�)�)�I�I���	�	�	��K�K�@��A����
�
�
�

�H�H�H�H�����
	����	�C�C�
�6�0B�C�C�C�J�J���	�	�	��K�K�@��A����
�
�
�
�J�J�J�J�J�J�����
	����$'�z�?�?�
�i� � ��s,�-�
A*�)A%�%A*�.B�
C�+B;�;CN)r�enumr�typingrr�	cloudinitr�logging�	getLoggerrr-rr�dictr7rrr�<module>r>s���6�6���������������$�$�$�$�$�$��g���!�!��������������������"!�D�!�T�*�c�)�n�2L�-M�!�!�!�!�!�!r

Youez - 2016 - github.com/yon3zu
LinuXploit