Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ 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 : /usr/lib/python3/dist-packages/cloudinit/reporting/__pycache__/ |
Upload File : |
o x[h( � @ 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 �