From f9306cf8f157802998986a0e9ac19fd6d6396494 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Fri, 23 Sep 2022 09:41:31 +0200 Subject: [PATCH] Island: Keep naming consistency in island_event_handlers --- monkey/monkey_island/cc/setup/island_event_handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/setup/island_event_handlers.py b/monkey/monkey_island/cc/setup/island_event_handlers.py index 31e7908f6..96d2e1941 100644 --- a/monkey/monkey_island/cc/setup/island_event_handlers.py +++ b/monkey/monkey_island/cc/setup/island_event_handlers.py @@ -26,7 +26,7 @@ def setup_island_event_handlers(container: DIContainer): _subscribe_reset_agent_configuration_events(island_event_queue, container) _subscribe_clear_simulation_data_events(island_event_queue, container) _subscribe_set_island_mode_events(island_event_queue, container) - _subscribe_on_terminate_agents_signal(island_event_queue, container) + _subscribe_terminate_agents_events(island_event_queue, container) def _subscribe_agent_registration_events( @@ -78,7 +78,7 @@ def _subscribe_set_island_mode_events( island_event_queue.subscribe(topic, simulation_repository.set_mode) -def _subscribe_on_terminate_agents_signal( +def _subscribe_terminate_agents_events( island_event_queue: IIslandEventQueue, container: DIContainer ): topic = IslandEventTopic.TERMINATE_AGENTS