%PDF- %PDF-
Direktori : /proc/self/root/usr/lib/python2.7/site-packages/cloudinit/reporting/ |
Current File : //proc/self/root/usr/lib/python2.7/site-packages/cloudinit/reporting/__init__.pyc |
� oB�]c @ sc d Z d d l m Z d d l m Z i i d d 6d 6Z d � Z d � Z e � Z e e � 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 ( t available_handlerst logt typet loggingc C s� x� | j � D]v \ } } | s8 t j | d t �q n | j � } t j | j d � } t j | � | | � } t j | | � q Wd S( 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. t forceR N( t itemst instantiated_handler_registryt unregister_itemt Truet copyR t registered_itemst popt register_item( t configt handler_namet handler_configt clst instance( ( s@ /usr/lib/python2.7/site-packages/cloudinit/reporting/__init__.pyt update_configuration s c C s@ x9 t j j � D]( \ } } t | d � r | j � q q Wd S( Nt flush( R R R t hasattrR ( t _t handler( ( s@ /usr/lib/python2.7/site-packages/cloudinit/reporting/__init__.pyt flush_events( s N( t __doc__t registryR t handlersR t DEFAULT_CONFIGR R R ( ( ( s@ /usr/lib/python2.7/site-packages/cloudinit/reporting/__init__.pyt <module> s