forked from p34709852/monkey
Island: Rename event_queue to island_event_queue
This commit is contained in:
parent
2bfb85a652
commit
afa6c6b159
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue