Island: Rename event_queue to island_event_queue

This commit is contained in:
Ilija Lazoroski 2022-09-13 10:44:52 +02:00
parent 2bfb85a652
commit afa6c6b159
1 changed files with 3 additions and 3 deletions

View File

@ -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)