OS : Linux
PHP Version : 7.4.33
Software : Apache/2.4.6 (CentOS) PHP/7.4.33
Information System : Linux apprendre2 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Disable Function : ó
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