
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
3
\me(                 @   sZ   d Z ddlmZ ddlmZ ddlmZmZ dddiiZdd	 Z	d
d Z
e Ze	e dS )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_handlersZloggingtypelogc             C   sf   x`| j  D ]T\}}|s&tj|dd q
|j }tj|jd }tj| |f |}tj|| q
W dS )zUpdate 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_registryZunregister_itemcopyr   registered_itemspopZregister_item)configZhandler_nameZhandler_configclsinstance r   /usr/lib/python3.6/__init__.pyupdate_configuration   s    


r   c              C   s    xt jj D ]} | j  qW d S )N)r
   r   valuesflush)Zhandlerr   r   r   flush_events-   s    r   N)__doc__Ztypingr   Zcloudinit.registryr   Zcloudinit.reporting.handlersr   r   ZDEFAULT_CONFIGr   r   r
   r   r   r   r   <module>
   s   