3 \me(@sZdZddlmZddlmZddlmZmZdddiiZdd Z d d Z eZ e ed 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) HandlerTypeavailable_handlersZloggingtypelogcCsfx`|jD]T\}}|s&tj|ddq |j}tj|jd}tj||f|}tj||q WdS)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)forcerN)itemsinstantiated_handler_registryZunregister_itemcopyrregistered_itemspopZ register_item)configZ handler_nameZhandler_configclsinstancer/usr/lib/python3.6/__init__.pyupdate_configurations    rcCs xtjjD] }|jq WdS)N)r r valuesflush)Zhandlerrrr flush_events-srN) __doc__ZtypingrZcloudinit.registryrZcloudinit.reporting.handlersrrZDEFAULT_CONFIGrrr rrrr s