Island: Subscribe set_simulation_mode to IslandEventTopic.SET_ISLAND_MODE

This commit is contained in:
Shreya Malviya 2022-09-21 16:21:50 +05:30
parent b4c1879bf9
commit 5a96d5b570
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@ from monkey_island.cc.island_event_handlers import (
reset_agent_configuration,
reset_machine_repository,
set_agent_configuration_per_island_mode,
set_simulation_mode,
)
from monkey_island.cc.repository import (
IAgentEventRepository,
@ -62,3 +63,6 @@ def _subscribe_set_island_mode_events(
island_event_queue.subscribe(
IslandEventTopic.SET_ISLAND_MODE, container.resolve(set_agent_configuration_per_island_mode)
)
island_event_queue.subscribe(
IslandEventTopic.SET_ISLAND_MODE, container.resolve(set_simulation_mode)
)