MOON
Server: Apache
System: Linux server.cny.com.sg 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: tissuegurucom (1020)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3.6/site-packages/cloudinit/reporting/__pycache__/__init__.cpython-36.pyc
3

��b��@sJdZddlmZddlmZdddiiZdd	�Zd
d�Ze�Zee�dS)
z�
cloud-init reporting framework

The reporting framework is intended to allow all parts of cloud-init to
report events in a structured manner.
�)�DictRegistry�)�available_handlersZlogging�type�logcCsfx`|j�D]T\}}|s&tj|dd�q
|j�}tj|jd�}tj|�|f|�}tj||�q
WdS)z�Update the instantiated_handler_registry.

    :param config:
        The dictionary containing changes to apply.  If a key is given
        with a False-ish value, the registered handler matching that name
        will be unregistered.
    T)�forcerN)�items�instantiated_handler_registryZunregister_item�copyr�registered_items�popZ
register_item)�configZhandler_nameZhandler_config�cls�instance�r�/usr/lib/python3.6/__init__.py�update_configurations


rcCs.x(tjj�D]\}}t|d�r|j�qWdS)N�flush)r	rr�hasattrr)�_Zhandlerrrr�flush_events)s
rN)	�__doc__�registryrZhandlersrZDEFAULT_CONFIGrrr	rrrr�<module>
s