diff --git a/monkey/monkey_island/cc/event_queue/i_island_event_queue.py b/monkey/monkey_island/cc/event_queue/i_island_event_queue.py index 7e188875b..cc81f8e26 100644 --- a/monkey/monkey_island/cc/event_queue/i_island_event_queue.py +++ b/monkey/monkey_island/cc/event_queue/i_island_event_queue.py @@ -9,7 +9,7 @@ class IslandEventTopic(Enum): AGENT_CONNECTED = auto() CLEAR_SIMULATION_DATA = auto() RESET_AGENT_CONFIGURATION = auto() - SET_MODE = auto() + SET_ISLAND_MODE = auto() class IIslandEventQueue(ABC): diff --git a/monkey/monkey_island/cc/resources/island_mode.py b/monkey/monkey_island/cc/resources/island_mode.py index 434cae551..0eb10c35e 100644 --- a/monkey/monkey_island/cc/resources/island_mode.py +++ b/monkey/monkey_island/cc/resources/island_mode.py @@ -28,7 +28,7 @@ class IslandMode(AbstractResource): mode = IslandModeEnum(request.json) self._island_mode_service.set_mode(mode) - self._island_event_queue.publish(topic=IslandEventTopic.SET_MODE, event=mode) + self._island_event_queue.publish(topic=IslandEventTopic.SET_ISLAND_MODE, event=mode) return {}, HTTPStatus.NO_CONTENT except (AttributeError, json.decoder.JSONDecodeError): diff --git a/monkey/monkey_island/cc/setup/island_event_handlers.py b/monkey/monkey_island/cc/setup/island_event_handlers.py index 4f86cca33..5921da731 100644 --- a/monkey/monkey_island/cc/setup/island_event_handlers.py +++ b/monkey/monkey_island/cc/setup/island_event_handlers.py @@ -60,5 +60,5 @@ def _subscribe_set_island_mode_events( island_event_queue: IIslandEventQueue, container: DIContainer ): island_event_queue.subscribe( - IslandEventTopic.SET_MODE, container.resolve(set_agent_configuration_per_island_mode) + IslandEventTopic.SET_ISLAND_MODE, container.resolve(set_agent_configuration_per_island_mode) )