| Server IP : 159.223.102.202 / Your IP : 216.73.216.195 Web Server : nginx/1.26.0 System : Linux Gen1-cloudpanel2ubuntu2404-1vcpu-1gb-nyc1-01 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : albasshbotta ( 1021) PHP Version : 8.2.19 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 : |
�
�f( � �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&