| Server IP : 139.59.63.204 / Your IP : 216.73.217.62 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu-s-1vcpu-1gb-blr1-01 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/cloudinit/reporting/__pycache__/ |
Upload File : |
�
x[h( � �f � d Z ddlmZ ddlmZ ddlmZmZ dddiiZd� Z d � Z
e� Z e e� y
)z�
cloud-init reporting framework
The reporting framework is intended to allow all parts of cloud-init to
report events in a structured manner.
� )�Type)�DictRegistry)�HandlerType�available_handlers�logging�type�logc �2 � | j � D ]� \ }}|st j |d�� � |j � }t j
|j
d� }t j |� |di |��}t j ||� �� y)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)�forcer N� )�items�instantiated_handler_registry�unregister_item�copyr �registered_items�pop�
register_item)�config�handler_name�handler_config�cls�instances �>/usr/lib/python3/dist-packages/cloudinit/reporting/__init__.py�update_configurationr s� � � )/���� L�$��n��)�9�9��D�
:�
�
�'�,�,�.��!3�!D�!D����v�&�"
�� &�5�5�l�C��(��(��%�3�3�L�(�K�L� c �j � t j j � D ] } | j � � y )N)r r �values�flush)�handlers r �flush_eventsr - s) � �0�A�A�H�H�J� ���
�
��r N)�__doc__�typingr �cloudinit.registryr �cloudinit.reporting.handlersr r �DEFAULT_CONFIGr r r r r r �<module>r&