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 (
|
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)
|
||||||
|
|
Loading…
Reference in New Issue