diff --git a/monkey/monkey_island/cc/resources/reset_agent_configuration.py b/monkey/monkey_island/cc/resources/reset_agent_configuration.py index 04de3bedc..68028d048 100644 --- a/monkey/monkey_island/cc/resources/reset_agent_configuration.py +++ b/monkey/monkey_island/cc/resources/reset_agent_configuration.py @@ -10,14 +10,14 @@ from monkey_island.cc.resources.request_authentication import jwt_required class ResetAgentConfiguration(AbstractResource): urls = ["/api/reset-agent-configuration"] - def __init__(self, event_queue: IIslandEventQueue): - self._event_queue = event_queue + def __init__(self, island_event_queue: IIslandEventQueue): + self._island_event_queue = island_event_queue @jwt_required def post(self): """ Reset the agent configuration to its default values """ - self._event_queue.publish(IslandEventTopic.RESET_AGENT_CONFIGURATION) + self._island_event_queue.publish(IslandEventTopic.RESET_AGENT_CONFIGURATION) return make_response({}, HTTPStatus.OK)