| Server IP : 138.197.176.125 / Your IP : 216.73.217.55 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/cloudinit/reporting/__pycache__/ |
Upload File : |
U
Ӈg( � @ 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_handlersZlogging�type�logc C sb | � � D ]T\}}|s$tj|dd� q|�� }tj|�d� }t�|� |f |�}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)Zforcer N)�items�instantiated_handler_registryZunregister_item�copyr �registered_items�popZ
register_item)ZconfigZhandler_nameZhandler_config�cls�instance� r �>/usr/lib/python3/dist-packages/cloudinit/reporting/__init__.py�update_configuration s ��
r c C s t j�� D ]} | �� q
d S )N)r r �values�flush)Zhandlerr r r �flush_events- s r N)�__doc__�typingr Zcloudinit.registryr Zcloudinit.reporting.handlersr r ZDEFAULT_CONFIGr r r r r r r �<module> s �