forked from p34709852/monkey
Island: Subscribe IAgentLogRepository.reset() to IslandEventTopic.CLEAR_SIMULATION_DATA
This commit is contained in:
parent
cadf0d61d0
commit
f61e734d29
|
@ -10,6 +10,7 @@ from monkey_island.cc.island_event_handlers import (
|
|||
)
|
||||
from monkey_island.cc.repository import (
|
||||
IAgentEventRepository,
|
||||
IAgentLogRepository,
|
||||
IAgentRepository,
|
||||
ICredentialsRepository,
|
||||
INodeRepository,
|
||||
|
@ -59,9 +60,10 @@ def _subscribe_clear_simulation_data_events(
|
|||
island_event_queue.subscribe(topic, container.resolve(reset_machine_repository))
|
||||
|
||||
for i_repository in [
|
||||
INodeRepository,
|
||||
IAgentEventRepository,
|
||||
IAgentLogRepository,
|
||||
IAgentRepository,
|
||||
INodeRepository,
|
||||
]:
|
||||
repository = container.resolve(i_repository)
|
||||
island_event_queue.subscribe(topic, repository.reset)
|
||||
|
|
Loading…
Reference in New Issue