
    x[h(                     f    S r SSKJr  SSKJr  SSKJrJr  SSS00rS r	S	 r
\" 5       r\	" \5        g
)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                 8   U R                  5        H  u  pU(       d  [        R                  USS9  M"  UR                  5       n[        R
                  UR                  S5         n[        R                  U5        U" S0 UD6n[        R                  X5        M     g)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_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     )/$)99D :  ',,.!3!D!Dv&"
 	&55lC((%33LK )7    c                  n    [         R                  R                  5        H  n U R                  5         M     g )N)r   r   valuesflush)handlers    r   flush_eventsr    -   s%    0AAHHJ Kr   N)__doc__typingr   cloudinit.registryr   cloudinit.reporting.handlersr   r   DEFAULT_CONFIGr   r    r   r   r   r   <module>r&      sD   
  + H 
L. !-  ^ $r   