관리-도구
편집 파일: config_merger.cpython-311.opt-1.pyc
� IMg< � �v � d dl Z d dlmZmZ d dlmZ d dlmZmZ e j e � � Z G d� de� � ZdS )� N)�ConfigValidationError�Merger)�MessageType)�MessageSink�expectc �d � e Zd Zej j Zd� Zd� Z e e j � � d� � � ZdS )�ConfigMergerc � � d | _ d S �N��loop)�selfs �Z/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/plugins/config_merger.py�__init__zConfigMerger.__init__ s � ��� � � � c � � K � || _ d S r r )r r s r �create_sinkzConfigMerger.create_sink s � � � ��� � � r c � �T K � t j � � n2# t $ r%}t � d|� � Y d }~nd }~ww xY w|� d� � x}r|� � � d S d S # |� d� � x}r|� � � w w xY w)Nz&Config is invalid. Will not update: %s�event)r �update_merged_configr �logger�error�get�set)r �message�errr s r r z!ConfigMerger.update_merged_config s� � � � � ��'�)�)�)�)��$� H� H� H��L�L�A�3�G�G�G�G�G�G�G�G����� H���� ���G�,�,�,�u� �� � ������ � �����G�,�,�,�u� �� � ����� ���s* � �A9 � A�A�A9 �A�A9 �9.B'N) �__name__� __module__�__qualname__r �ProcessingOrder�PRE_PROCESS_MESSAGE�PROCESSING_ORDERr r r r �ConfigUpdater � r r r r sg � � � � � �"�2�F��� � �� � � �V�K�$�%�%�� � &�%�� � r r ) �logging� defence360agent.contracts.configr r �"defence360agent.contracts.messagesr �!defence360agent.contracts.pluginsr r � getLoggerr r r r$ r r �<module>r* s� �� ���� J� J� J� J� J� J� J� J� :� :� :� :� :� :� A� A� A� A� A� A� A� A� �� �8� $� $��� � � � �;� � � � � r