| Server IP : 167.99.254.82 / Your IP : 216.73.217.78 Web Server : Apache System : Linux host.techisquad.com 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64 User : pawluxera ( 1011) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/cloudinit/reporting/__pycache__/ |
Upload File : |
o
��i( � @ sZ d Z ddlmZ ddlmZ ddlmZmZ dddiiZdd � Z d
d� Z
e� Ze e� dS )
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 C sf | � � D ],\}}|stj|dd� q|�� }tj|�d� }t�|� |di |��}t�||� qdS )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�instancer
r
�>/usr/lib/python3/dist-packages/cloudinit/reporting/__init__.py�update_configuration s ��
�r c C s t j�� D ]} | �� qd S )N)r r �values�flush)�handlerr
r
r �flush_events- s
�r N)�__doc__�typingr �cloudinit.registryr �cloudinit.reporting.handlersr r �DEFAULT_CONFIGr r r r
r
r
r �<module> s �