Current File : //usr/lib/python2.7/site-packages/cloudinit/reporting/__init__.pyo
�
oB�]c@scdZddlmZddlmZiidd6d6Zd�Zd	�Ze�Zee�d
S(s�
cloud-init reporting framework

The reporting framework is intended to allow all parts of cloud-init to
report events in a structured manner.
i(tDictRegistryi(tavailable_handlerstlogttypetloggingcCs�x�|j�D]v\}}|s8tj|dt�q
n|j�}tj|jd�}tj|�||�}tj||�q
WdS(s�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.
    tforceRN(	titemstinstantiated_handler_registrytunregister_itemtTruetcopyRtregistered_itemstpopt
register_item(tconfigthandler_namethandler_configtclstinstance((s@/usr/lib/python2.7/site-packages/cloudinit/reporting/__init__.pytupdate_configurations

cCs@x9tjj�D](\}}t|d�r|j�qqWdS(Ntflush(RRRthasattrR(t_thandler((s@/usr/lib/python2.7/site-packages/cloudinit/reporting/__init__.pytflush_events(sN(	t__doc__tregistryRthandlersRtDEFAULT_CONFIGRRR(((s@/usr/lib/python2.7/site-packages/cloudinit/reporting/__init__.pyt<module>
s