Island: Subscribe IAgentLogRepository.reset() to IslandEventTopic.CLEAR_SIMULATION_DATA

This commit is contained in:
Shreya Malviya 2022-09-28 17:53:30 +05:30
parent cadf0d61d0
commit f61e734d29
1 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,7 @@ from monkey_island.cc.island_event_handlers import (
) )
from monkey_island.cc.repository import ( from monkey_island.cc.repository import (
IAgentEventRepository, IAgentEventRepository,
IAgentLogRepository,
IAgentRepository, IAgentRepository,
ICredentialsRepository, ICredentialsRepository,
INodeRepository, INodeRepository,
@ -59,9 +60,10 @@ def _subscribe_clear_simulation_data_events(
island_event_queue.subscribe(topic, container.resolve(reset_machine_repository)) island_event_queue.subscribe(topic, container.resolve(reset_machine_repository))
for i_repository in [ for i_repository in [
INodeRepository,
IAgentEventRepository, IAgentEventRepository,
IAgentLogRepository,
IAgentRepository, IAgentRepository,
INodeRepository,
]: ]:
repository = container.resolve(i_repository) repository = container.resolve(i_repository)
island_event_queue.subscribe(topic, repository.reset) island_event_queue.subscribe(topic, repository.reset)